Skip to content

Commit

Permalink
fix(explore): metric label disappearing in some scenarios (#16190)
Browse files Browse the repository at this point in the history
(cherry picked from commit 98fc29c)
  • Loading branch information
kgabryje authored and villebro committed Aug 16, 2021
1 parent bc5e05b commit 4c6a259
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4c6a259

Please sign in to comment.