fix(explore): Save button incorrectly disabled when adding new metric with dnd (#23000)

This commit is contained in:
Kamil Gabryjelski
2023-02-06 22:19:02 +01:00
committed by GitHub
parent 2dff0009e9
commit 7d5c86b44c
9 changed files with 47 additions and 26 deletions

View File

@@ -328,7 +328,7 @@ const DndMetricSelect = (props: any) => {
}
return new AdhocMetric(config);
}
return new AdhocMetric({ isNew: true });
return new AdhocMetric({});
}, [droppedItem]);
const ghostButtonText = isFeatureEnabled(FeatureFlag.ENABLE_DND_WITH_CLICK_UX)
@@ -370,6 +370,7 @@ const DndMetricSelect = (props: any) => {
visible={newMetricPopoverVisible}
togglePopover={togglePopover}
closePopover={closePopover}
isNew
>
<div />
</AdhocMetricPopoverTrigger>