From 743f4b65127d3da1410b7dd431a06f3ee1db4009 Mon Sep 17 00:00:00 2001 From: Ajay M Date: Tue, 26 Oct 2021 22:13:47 -0400 Subject: [PATCH] Fix resetting does not clear form (#17217) --- .../nativeFilters/FiltersConfigModal/FiltersConfigModal.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/superset-frontend/src/dashboard/components/nativeFilters/FiltersConfigModal/FiltersConfigModal.tsx b/superset-frontend/src/dashboard/components/nativeFilters/FiltersConfigModal/FiltersConfigModal.tsx index 30c28e6fcad06..04cae20bce3df 100644 --- a/superset-frontend/src/dashboard/components/nativeFilters/FiltersConfigModal/FiltersConfigModal.tsx +++ b/superset-frontend/src/dashboard/components/nativeFilters/FiltersConfigModal/FiltersConfigModal.tsx @@ -225,7 +225,7 @@ export function FiltersConfigModal({ const initialFilterHierarchy = getInitialFilterHierarchy(); setFilterHierarchy(initialFilterHierarchy); setOrderedFilters(buildFilterGroup(initialFilterHierarchy)); - form.resetFields(); + form.resetFields(['filters']); } form.setFieldsValue({ changed: false }); };