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

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


The following commit(s) were added to refs/heads/master by this push:
     new 016417f7939 fix(explore): prevent TypeError when chart dimension 
returns empty string (#38276)
016417f7939 is described below

commit 016417f7939a407a9696e184811dadb8612bfd27
Author: Enzo Martellucci <[email protected]>
AuthorDate: Tue Mar 3 15:06:02 2026 +0100

    fix(explore): prevent TypeError when chart dimension returns empty string 
(#38276)
---
 superset-frontend/src/explore/components/DataTableControl/index.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/superset-frontend/src/explore/components/DataTableControl/index.tsx 
b/superset-frontend/src/explore/components/DataTableControl/index.tsx
index 4d1e1ecf784..2e9e11776d3 100644
--- a/superset-frontend/src/explore/components/DataTableControl/index.tsx
+++ b/superset-frontend/src/explore/components/DataTableControl/index.tsx
@@ -317,7 +317,7 @@ export const useTableColumns = (
                 originalFormattedTimeColumns.includes(key);
               return {
                 // react-table requires a non-empty id, therefore we introduce 
a fallback value in case the key is empty
-                id: key || index,
+                id: key || String(index),
                 accessor: (row: Record<string, any>) => row[key],
                 Header:
                   colType === GenericDataType.Temporal &&

Reply via email to