mirror of
https://github.com/apache/superset.git
synced 2024-09-12 00:29:39 -04:00
fix: Null values on Treemap right-click (#21722)
This commit is contained in:
parent
61319fd759
commit
0ff1e49e3c
@ -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,
|
||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user