mirror of
https://github.com/apache/superset.git
synced 2024-09-16 02:29:39 -04:00
fix(legacy-plugin-chart-sunburst): chart broken when secondary metric is remove (#20223)
This commit is contained in:
parent
0ee1f492a7
commit
ad72ea53a1
@ -237,9 +237,9 @@ export const DndMetricSelect = (props: any) => {
|
|||||||
const valuesCopy = [...value];
|
const valuesCopy = [...value];
|
||||||
valuesCopy.splice(index, 1);
|
valuesCopy.splice(index, 1);
|
||||||
setValue(valuesCopy);
|
setValue(valuesCopy);
|
||||||
onChange(valuesCopy);
|
handleChange(valuesCopy);
|
||||||
},
|
},
|
||||||
[onChange, value],
|
[handleChange, value],
|
||||||
);
|
);
|
||||||
|
|
||||||
const moveLabel = useCallback(
|
const moveLabel = useCallback(
|
||||||
|
Loading…
Reference in New Issue
Block a user