diff --git a/superset-frontend/src/dashboard/components/nativeFilters/FiltersConfigModal/FiltersConfigForm/FiltersConfigForm.tsx b/superset-frontend/src/dashboard/components/nativeFilters/FiltersConfigModal/FiltersConfigForm/FiltersConfigForm.tsx
index 61789043ee..12075367bf 100644
--- a/superset-frontend/src/dashboard/components/nativeFilters/FiltersConfigModal/FiltersConfigForm/FiltersConfigForm.tsx
+++ b/superset-frontend/src/dashboard/components/nativeFilters/FiltersConfigModal/FiltersConfigForm/FiltersConfigForm.tsx
@@ -726,9 +726,11 @@ const FiltersConfigForm = (
formData={newFormData}
enableNoResults={enableNoResults}
/>
-
- refreshHandler(true)} />
-
+ {hasDataset && datasetId && (
+
+ refreshHandler(true)} />
+
+ )}
) : (
t('Fill all required fields to enable "Default Value"')