From 0ff1e49e3c720ed229f6a08daaa70bf14a053dca Mon Sep 17 00:00:00 2001 From: "Michael S. Molina" <70410625+michael-s-molina@users.noreply.github.com> Date: Fri, 7 Oct 2022 08:08:10 -0300 Subject: [PATCH] fix: Null values on Treemap right-click (#21722) --- .../plugin-chart-echarts/src/Treemap/EchartsTreemap.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/superset-frontend/plugins/plugin-chart-echarts/src/Treemap/EchartsTreemap.tsx b/superset-frontend/plugins/plugin-chart-echarts/src/Treemap/EchartsTreemap.tsx index 47620eb5dd..3a9e41b3b2 100644 --- a/superset-frontend/plugins/plugin-chart-echarts/src/Treemap/EchartsTreemap.tsx +++ b/superset-frontend/plugins/plugin-chart-echarts/src/Treemap/EchartsTreemap.tsx @@ -19,6 +19,7 @@ import { DataRecordValue, QueryObjectFilterClause } from '@superset-ui/core'; import React, { useCallback } from 'react'; import Echart from '../components/Echart'; +import { NULL_STRING } from '../constants'; import { EventHandlers } from '../types'; import { extractTreePathInfo } from './constants'; import { TreemapTransformedProps } from './types'; @@ -97,7 +98,7 @@ export default function EchartsTreemap({ filters.push({ col: groupby[i], op: '==', - val: path, + val: path === 'null' ? NULL_STRING : path, formattedVal: path, }), );