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
1 changed files with 2 additions and 1 deletions

View File

@ -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,
}),
);