fix: Null values on Treemap right-click (#21722)

This commit is contained in:
Michael S. Molina 2022-10-07 08:08:10 -03:00 committed by GitHub
parent 61319fd759
commit 0ff1e49e3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,6 +19,7 @@
import { DataRecordValue, QueryObjectFilterClause } from '@superset-ui/core'; import { DataRecordValue, QueryObjectFilterClause } from '@superset-ui/core';
import React, { useCallback } from 'react'; import React, { useCallback } from 'react';
import Echart from '../components/Echart'; import Echart from '../components/Echart';
import { NULL_STRING } from '../constants';
import { EventHandlers } from '../types'; import { EventHandlers } from '../types';
import { extractTreePathInfo } from './constants'; import { extractTreePathInfo } from './constants';
import { TreemapTransformedProps } from './types'; import { TreemapTransformedProps } from './types';
@ -97,7 +98,7 @@ export default function EchartsTreemap({
filters.push({ filters.push({
col: groupby[i], col: groupby[i],
op: '==', op: '==',
val: path, val: path === 'null' ? NULL_STRING : path,
formattedVal: path, formattedVal: path,
}), }),
); );