mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
chore: Reverts reset form in native filters (#15644)
This commit is contained in:
committed by
GitHub
parent
52ad779a27
commit
f0c0d7492c
@@ -164,6 +164,15 @@ export function FiltersConfigModal({
|
||||
addFilter,
|
||||
);
|
||||
|
||||
// After this, it should be as if the modal was just opened fresh.
|
||||
// Called when the modal is closed.
|
||||
const resetForm = () => {
|
||||
setNewFilterIds([]);
|
||||
setCurrentFilterId(initialCurrentFilterId);
|
||||
setRemovedFilters({});
|
||||
setSaveAlertVisible(false);
|
||||
};
|
||||
|
||||
const getFilterTitle = (id: string) =>
|
||||
formValues.filters[id]?.name ??
|
||||
filterConfigMap[id]?.name ??
|
||||
@@ -208,6 +217,7 @@ export function FiltersConfigModal({
|
||||
};
|
||||
|
||||
const handleConfirmCancel = () => {
|
||||
resetForm();
|
||||
onCancel();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user