Skip to content

Commit

Permalink
fix(explore): metric label disappearing in some scenarios (apache#16190)
Browse files Browse the repository at this point in the history
  • Loading branch information
kgabryje authored Aug 11, 2021
1 parent cc81361 commit 75d3d8d
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 75d3d8d

Please sign in to comment.