mirror of https://github.com/apache/superset.git
feat: Allows reload on default filter value error (#23459)
This commit is contained in:
parent
212b7330d6
commit
b0773145d6
|
@ -1214,14 +1214,15 @@ const FiltersConfigForm = (
|
||||||
},
|
},
|
||||||
]}
|
]}
|
||||||
>
|
>
|
||||||
|
{error || showDefaultValue ? (
|
||||||
|
<DefaultValueContainer>
|
||||||
{error ? (
|
{error ? (
|
||||||
<BasicErrorAlert
|
<BasicErrorAlert
|
||||||
title={t('Cannot load filter')}
|
title={t('Cannot load filter')}
|
||||||
body={error}
|
body={error}
|
||||||
level="error"
|
level="error"
|
||||||
/>
|
/>
|
||||||
) : showDefaultValue ? (
|
) : (
|
||||||
<DefaultValueContainer>
|
|
||||||
<DefaultValue
|
<DefaultValue
|
||||||
setDataMask={dataMask => {
|
setDataMask={dataMask => {
|
||||||
if (
|
if (
|
||||||
|
@ -1247,6 +1248,7 @@ const FiltersConfigForm = (
|
||||||
formData={newFormData}
|
formData={newFormData}
|
||||||
enableNoResults={enableNoResults}
|
enableNoResults={enableNoResults}
|
||||||
/>
|
/>
|
||||||
|
)}
|
||||||
{hasDataset && datasetId && (
|
{hasDataset && datasetId && (
|
||||||
<Tooltip title={t('Refresh the default values')}>
|
<Tooltip title={t('Refresh the default values')}>
|
||||||
<RefreshIcon onClick={() => refreshHandler(true)} />
|
<RefreshIcon onClick={() => refreshHandler(true)} />
|
||||||
|
|
Loading…
Reference in New Issue