diff --git a/superset-frontend/src/dashboard/util/activeDashboardFilters.js b/superset-frontend/src/dashboard/util/activeDashboardFilters.js index f72e016fbac80..0ad7f76076e12 100644 --- a/superset-frontend/src/dashboard/util/activeDashboardFilters.js +++ b/superset-frontend/src/dashboard/util/activeDashboardFilters.js @@ -69,10 +69,12 @@ export function getChartIdsInFilterScope(filterScope, charts, layout) { layoutItems .find( layoutItem => - layoutItem.type === CHART_TYPE && - layoutItem.meta.chartId === chart.id, + layoutItem?.type === CHART_TYPE && + layoutItem.meta?.chartId === chart.id, ) - ?.parents.some(elementId => filterScope.rootPath.includes(elementId)), + ?.parents?.some(elementId => + filterScope.rootPath.includes(elementId), + ), ) .map(chart => chart.id); }