Skip to content

Commit

Permalink
fix: display -- for null fields in the data table
Browse files Browse the repository at this point in the history
  • Loading branch information
danielstefanequilobe committed Feb 22, 2022
1 parent f8ad1ac commit 2a188df
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/components/blocks/APIDataTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,12 @@ const APIDataTable = withTheme(
record[key] &&
record[key] !== 'null' &&
record[key].toString()}

{key !== 'orgUid' &&
(record[key] === 'null' ||
record[key] === '' ||
record[key] === null) &&
'--'}
</TableCellText>
</Td>
))}
Expand Down

0 comments on commit 2a188df

Please sign in to comment.