mirror of https://github.com/apache/superset.git
chore: Makes the refresh button only appear when the filter has a dataset (#15194)
This commit is contained in:
parent
4289929745
commit
fc8ad4f984
|
@ -726,9 +726,11 @@ const FiltersConfigForm = (
|
|||
formData={newFormData}
|
||||
enableNoResults={enableNoResults}
|
||||
/>
|
||||
<Tooltip title={t('Refresh the default values')}>
|
||||
<RefreshIcon onClick={() => refreshHandler(true)} />
|
||||
</Tooltip>
|
||||
{hasDataset && datasetId && (
|
||||
<Tooltip title={t('Refresh the default values')}>
|
||||
<RefreshIcon onClick={() => refreshHandler(true)} />
|
||||
</Tooltip>
|
||||
)}
|
||||
</DefaultValueContainer>
|
||||
) : (
|
||||
t('Fill all required fields to enable "Default Value"')
|
||||
|
|
Loading…
Reference in New Issue