From f464a0ed71be68a41646dde5344837e6bb0459c2 Mon Sep 17 00:00:00 2001 From: Evan Rusackas Date: Tue, 9 Aug 2022 10:57:01 -0600 Subject: [PATCH] fix: making crossFilter.chartsInScope optional --- .../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 880a6d33e766b..855ca303db50e 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;