You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by am...@apache.org on 2021/04/12 11:09:05 UTC

[superset] branch master updated: Make chart exclude itself from cross filtering (#14046)

This is an automated email from the ASF dual-hosted git repository.

amitmiran 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 bf22487  Make chart exclude itself from cross filtering (#14046)
bf22487 is described below

commit bf22487e23451383fd629744cb579cc7cfd47073
Author: Kamil Gabryjelski <ka...@gmail.com>
AuthorDate: Mon Apr 12 13:08:07 2021 +0200

    Make chart exclude itself from cross filtering (#14046)
---
 superset-frontend/src/dashboard/util/activeAllDashboardFilters.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/superset-frontend/src/dashboard/util/activeAllDashboardFilters.ts b/superset-frontend/src/dashboard/util/activeAllDashboardFilters.ts
index 204791b..3d5c3ea 100644
--- a/superset-frontend/src/dashboard/util/activeAllDashboardFilters.ts
+++ b/superset-frontend/src/dashboard/util/activeAllDashboardFilters.ts
@@ -92,7 +92,7 @@ export const getAllActiveFilters = ({
     const scope = nativeFilters?.[filterId]?.scope ??
       chartConfiguration?.[filterId]?.crossFilters?.scope ?? {
         rootPath: [DASHBOARD_ROOT_ID],
-        excluded: [],
+        excluded: [filterId],
       };
     // Iterate over all roots to find all affected charts
     scope.rootPath.forEach(layoutItemId => {