This is an automated email from the ASF dual-hosted git repository.

villebro pushed a commit to branch 1.5
in repository https://gitbox.apache.org/repos/asf/superset.git

commit 5df14ed8f9d642be81c0a811a0e87f098e49ec3a
Author: smileydev <[email protected]>
AuthorDate: Mon Apr 18 21:26:15 2022 -0400

    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
    
    (cherry picked from commit 34323f9b5fcb1768f172d634e166230b6689f0da)
---
 superset-frontend/src/explore/components/DataTableControl/index.tsx | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git 
a/superset-frontend/src/explore/components/DataTableControl/index.tsx 
b/superset-frontend/src/explore/components/DataTableControl/index.tsx
index c94c07cb74..2ae3521182 100644
--- a/superset-frontend/src/explore/components/DataTableControl/index.tsx
+++ b/superset-frontend/src/explore/components/DataTableControl/index.tsx
@@ -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],
   );

Reply via email to