From a6895e07b0b63ee60cab3f162c59cf3137dbcf57 Mon Sep 17 00:00:00 2001 From: Sam Firke Date: Fri, 25 Apr 2025 11:25:50 -0400 Subject: [PATCH] fix(heatmap): correctly render int and boolean falsy values on axes (#33238) (cherry picked from commit ac636c73ae33556577fcc5d82d7e1cb409946f34) --- .../plugins/plugin-chart-echarts/src/Heatmap/transformProps.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/superset-frontend/plugins/plugin-chart-echarts/src/Heatmap/transformProps.ts b/superset-frontend/plugins/plugin-chart-echarts/src/Heatmap/transformProps.ts index b4b826f3961..575e4c70024 100644 --- a/superset-frontend/plugins/plugin-chart-echarts/src/Heatmap/transformProps.ts +++ b/superset-frontend/plugins/plugin-chart-echarts/src/Heatmap/transformProps.ts @@ -145,7 +145,7 @@ export default function transformProps( data: data.map(row => colnames.map(col => { const value = row[col]; - if (!value) { + if (value === null || value === undefined) { return NULL_STRING; } if (typeof value === 'boolean' || typeof value === 'bigint') {