fix(legacy-plugin-chart-sunburst): chart broken when secondary metric is remove (#20223)

This commit is contained in:
Stephen Liu 2022-05-31 21:18:49 +08:00 committed by GitHub
parent 0ee1f492a7
commit ad72ea53a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -237,9 +237,9 @@ export const DndMetricSelect = (props: any) => {
const valuesCopy = [...value];
valuesCopy.splice(index, 1);
setValue(valuesCopy);
onChange(valuesCopy);
handleChange(valuesCopy);
},
[onChange, value],
[handleChange, value],
);
const moveLabel = useCallback(