From b929cb6927bc9d20f591a978646e757929e06201 Mon Sep 17 00:00:00 2001 From: Kamil Gabryjelski Date: Tue, 6 Apr 2021 17:16:24 +0200 Subject: [PATCH] Make chart exclude itself from cross filtering --- .../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 204791b45dd4e..3d5c3ea4b10b7 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 => {