You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ru...@apache.org on 2022/08/09 18:21:49 UTC

[superset] branch master updated: fix: making crossFilter.chartsInScope optional (#21030)

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

rusackas 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 0042ade66f fix: making crossFilter.chartsInScope optional (#21030)
0042ade66f is described below

commit 0042ade66f08530e31b7ded7143017ded46b3a3b
Author: Evan Rusackas <ev...@preset.io>
AuthorDate: Tue Aug 9 11:21:40 2022 -0700

    fix: making crossFilter.chartsInScope optional (#21030)
---
 superset-frontend/src/dashboard/components/FiltersBadge/selectors.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/superset-frontend/src/dashboard/components/FiltersBadge/selectors.ts b/superset-frontend/src/dashboard/components/FiltersBadge/selectors.ts
index 880a6d33e7..855ca303db 100644
--- a/superset-frontend/src/dashboard/components/FiltersBadge/selectors.ts
+++ b/superset-frontend/src/dashboard/components/FiltersBadge/selectors.ts
@@ -294,7 +294,7 @@ export const selectNativeIndicatorsForChart = (
     const dashboardLayoutValues = Object.values(dashboardLayout);
     crossFilterIndicators = Object.values(chartConfiguration)
       .filter(chartConfig =>
-        chartConfig.crossFilters.chartsInScope.includes(chartId),
+        chartConfig.crossFilters?.chartsInScope?.includes(chartId),
       )
       .map(chartConfig => {
         const filterState = dataMask[chartConfig.id]?.filterState;