Fixed error in details when displaying non-string values

This commit is contained in:
Matthew Garrett 2022-05-26 14:09:01 -07:00
Родитель 6e8380048b
Коммит 60a8566649
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -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}:&nbsp;
</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>
))}