mirror of
https://github.com/apache/superset.git
synced 2026-04-24 02:25:13 +00:00
fix(explore): metric label disappearing in some scenarios (#16190)
This commit is contained in:
committed by
GitHub
parent
4df3672baa
commit
98fc29cbbb
@@ -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