зеркало из https://github.com/Azure/ipam.git
Fixed error in details when displaying non-string values
This commit is contained in:
Родитель
6e8380048b
Коммит
60a8566649
|
@ -163,13 +163,13 @@ export default function ItemDetails(props) {
|
|||
}
|
||||
<Fields>
|
||||
{map.fieldMap.map((field, index) => (
|
||||
get(rowData, field.value) &&
|
||||
<React.Fragment key={index} display={get(rowData, field.value) ?? 'none'}>
|
||||
get(rowData, field.value) != null &&
|
||||
<React.Fragment key={index}>
|
||||
<Typography variant="overline" sx={{ fontSize: 10, fontWeight: "bold", textAlign: "left", pl: 3 }}>
|
||||
{field.name}:
|
||||
</Typography>
|
||||
<Typography noWrap variant="overline" sx={{ fontSize: 10, textAlign: "left", pl: 5 }}>
|
||||
{get(rowData, field.value) ? get(rowData, field.value) : "N/A"}
|
||||
{get(rowData, field.value) != null ? get(rowData, field.value) : "N/A"}
|
||||
</Typography>
|
||||
</React.Fragment>
|
||||
))}
|
||||
|
|
Загрузка…
Ссылка в новой задаче