Skip to content

Commit

Permalink
fix(explore): metric label disappearing in some scenarios
Browse files Browse the repository at this point in the history
  • Loading branch information
kgabryje committed Aug 11, 2021
1 parent 4df3672 commit b8345d6
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 b8345d6

Please sign in to comment.