mirror of
https://github.com/apache/superset.git
synced 2024-09-12 00:29:39 -04:00
fix: creating a new chart with dashboard time filters but filter can't apply again (#24405)
This commit is contained in:
parent
7a3a75ac28
commit
6dba6e32f5
@ -83,6 +83,19 @@ export const getSlicePayload = (
|
||||
adhocFilters = extractAddHocFiltersFromFormData(formDataFromSlice);
|
||||
}
|
||||
|
||||
if (
|
||||
isEmpty(adhocFilters?.adhoc_filters) &&
|
||||
isEmpty(formDataFromSlice) &&
|
||||
formDataWithNativeFilters?.adhoc_filters?.length > 0
|
||||
) {
|
||||
adhocFilters.adhoc_filters = [
|
||||
{
|
||||
...formDataWithNativeFilters.adhoc_filters[0],
|
||||
comparator: 'No filter',
|
||||
},
|
||||
];
|
||||
}
|
||||
|
||||
const formData = {
|
||||
...formDataWithNativeFilters,
|
||||
...adhocFilters,
|
||||
|
Loading…
Reference in New Issue
Block a user