You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by mi...@apache.org on 2025/05/12 15:08:32 UTC
(superset) 03/14: fix(heatmap): correctly render int and boolean falsy values on axes (#33238)
This is an automated email from the ASF dual-hosted git repository.
michaelsmolina pushed a commit to branch 5.0
in repository https://gitbox.apache.org/repos/asf/superset.git
commit a6895e07b0b63ee60cab3f162c59cf3137dbcf57
Author: Sam Firke <sf...@users.noreply.github.com>
AuthorDate: Fri Apr 25 11:25:50 2025 -0400
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 b4b826f396..575e4c7002 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') {