fix(explore): metric label disappearing in some scenarios (#16190)

This commit is contained in:
Kamil Gabryjelski
2021-08-11 14:05:44 +02:00
committed by GitHub
parent 4df3672baa
commit 98fc29cbbb

View File

@@ -185,6 +185,9 @@ export const DndMetricSelect = (props: any) => {
const onMetricEdit = useCallback(
(changedMetric: Metric | AdhocMetric, oldMetric: Metric | AdhocMetric) => {
if (oldMetric instanceof AdhocMetric && oldMetric.equals(changedMetric)) {
return;
}
const newValue = value.map(value => {
if (
// compare saved metrics