You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by mi...@apache.org on 2023/08/03 13:18:05 UTC
[superset] branch master updated: fix(explore): invalid "No Filter" applied (#24876)
This is an automated email from the ASF dual-hosted git repository.
michaelsmolina pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git
The following commit(s) were added to refs/heads/master by this push:
new 371bffbfea fix(explore): invalid "No Filter" applied (#24876)
371bffbfea is described below
commit 371bffbfea3494f3a535e148fbe99b17a3a8a020
Author: JUST.in DO IT <ju...@airbnb.com>
AuthorDate: Thu Aug 3 06:17:56 2023 -0700
fix(explore): invalid "No Filter" applied (#24876)
---
superset-frontend/src/explore/actions/saveModalActions.js | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/superset-frontend/src/explore/actions/saveModalActions.js b/superset-frontend/src/explore/actions/saveModalActions.js
index 1a9970ab75..32b34cbed4 100644
--- a/superset-frontend/src/explore/actions/saveModalActions.js
+++ b/superset-frontend/src/explore/actions/saveModalActions.js
@@ -21,6 +21,7 @@ import { SupersetClient, t } from '@superset-ui/core';
import { addSuccessToast } from 'src/components/MessageToasts/actions';
import { isEmpty } from 'lodash';
import { buildV1ChartDataPayload } from '../exploreUtils';
+import { Operators } from '../constants';
const ADHOC_FILTER_REGEX = /^adhoc_filters/;
@@ -81,7 +82,8 @@ export const getSlicePayload = (
if (
isEmpty(adhocFilters?.adhoc_filters) &&
isEmpty(formDataFromSlice) &&
- formDataWithNativeFilters?.adhoc_filters?.length > 0
+ formDataWithNativeFilters?.adhoc_filters?.[0]?.operator ===
+ Operators.TEMPORAL_RANGE
) {
adhocFilters.adhoc_filters = [
{