fix(explore): make to show the null value as N/A in view result (#19603)

* fix(explore): make to show the null value as N/A in view result

* fix(explore): make to remove console

* fix(explore): make to remove console in Cell

* fix(explore): make to translate N/A
This commit is contained in:
smileydev
2022-04-18 21:26:15 -04:00
committed by GitHub
parent a2d34ec4b8
commit 34323f9b5f

View File

@@ -250,7 +250,9 @@ export const useFilteredTableData = (
const rowsAsStrings = useMemo(
() =>
data?.map((row: Record<string, any>) =>
Object.values(row).map(value => value?.toString().toLowerCase()),
Object.values(row).map(value =>
value ? value.toString().toLowerCase() : t('N/A'),
),
) ?? [],
[data],
);