mirror of
https://github.com/apache/superset.git
synced 2024-09-12 00:29:39 -04:00
fix(explore): invalid "No Filter" applied (#24876)
This commit is contained in:
parent
f05638ba84
commit
371bffbfea
@ -21,6 +21,7 @@ import { SupersetClient, t } from '@superset-ui/core';
|
|||||||
import { addSuccessToast } from 'src/components/MessageToasts/actions';
|
import { addSuccessToast } from 'src/components/MessageToasts/actions';
|
||||||
import { isEmpty } from 'lodash';
|
import { isEmpty } from 'lodash';
|
||||||
import { buildV1ChartDataPayload } from '../exploreUtils';
|
import { buildV1ChartDataPayload } from '../exploreUtils';
|
||||||
|
import { Operators } from '../constants';
|
||||||
|
|
||||||
const ADHOC_FILTER_REGEX = /^adhoc_filters/;
|
const ADHOC_FILTER_REGEX = /^adhoc_filters/;
|
||||||
|
|
||||||
@ -81,7 +82,8 @@ export const getSlicePayload = (
|
|||||||
if (
|
if (
|
||||||
isEmpty(adhocFilters?.adhoc_filters) &&
|
isEmpty(adhocFilters?.adhoc_filters) &&
|
||||||
isEmpty(formDataFromSlice) &&
|
isEmpty(formDataFromSlice) &&
|
||||||
formDataWithNativeFilters?.adhoc_filters?.length > 0
|
formDataWithNativeFilters?.adhoc_filters?.[0]?.operator ===
|
||||||
|
Operators.TEMPORAL_RANGE
|
||||||
) {
|
) {
|
||||||
adhocFilters.adhoc_filters = [
|
adhocFilters.adhoc_filters = [
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user