From fc8ad4f984dba9d765af0bab3ad9bec76bf61f66 Mon Sep 17 00:00:00 2001
From: "Michael S. Molina" <70410625+michael-s-molina@users.noreply.github.com>
Date: Wed, 16 Jun 2021 10:07:23 -0300
Subject: [PATCH] chore: Makes the refresh button only appear when the filter
has a dataset (#15194)
---
.../FiltersConfigForm/FiltersConfigForm.tsx | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
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"')