mirror of https://github.com/apache/superset.git
fix: making crossFilter.chartsInScope optional (#21030)
This commit is contained in:
parent
17b58037f8
commit
0042ade66f
|
@ -294,7 +294,7 @@ export const selectNativeIndicatorsForChart = (
|
||||||
const dashboardLayoutValues = Object.values(dashboardLayout);
|
const dashboardLayoutValues = Object.values(dashboardLayout);
|
||||||
crossFilterIndicators = Object.values(chartConfiguration)
|
crossFilterIndicators = Object.values(chartConfiguration)
|
||||||
.filter(chartConfig =>
|
.filter(chartConfig =>
|
||||||
chartConfig.crossFilters.chartsInScope.includes(chartId),
|
chartConfig.crossFilters?.chartsInScope?.includes(chartId),
|
||||||
)
|
)
|
||||||
.map(chartConfig => {
|
.map(chartConfig => {
|
||||||
const filterState = dataMask[chartConfig.id]?.filterState;
|
const filterState = dataMask[chartConfig.id]?.filterState;
|
||||||
|
|
Loading…
Reference in New Issue