chore: Makes the refresh button only appear when the filter has a dataset (#15194)

This commit is contained in:
Michael S. Molina 2021-06-16 10:07:23 -03:00 committed by GitHub
parent 4289929745
commit fc8ad4f984
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 3 deletions

View File

@ -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"')