mirror of
https://github.com/apache/superset.git
synced 2026-05-12 19:35:17 +00:00
fix(explore): metric label disappearing in some scenarios (#16190)
(cherry picked from commit 98fc29cbbb)
This commit is contained in:
committed by
Ville Brofeldt
parent
bc5e05b1df
commit
4c6a2597b4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user