diff --git a/superset-frontend/src/explore/actions/saveModalActions.js b/superset-frontend/src/explore/actions/saveModalActions.js index 9bd5161391539..de4f7af84c37e 100644 --- a/superset-frontend/src/explore/actions/saveModalActions.js +++ b/superset-frontend/src/explore/actions/saveModalActions.js @@ -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,