mirror of
https://github.com/apache/superset.git
synced 2024-09-06 13:57:40 -04:00
fix(native-filters): fix filter scope error (#14426)
This commit is contained in:
parent
982a91ee62
commit
319125ec3b
@ -129,11 +129,10 @@ export const findFilterScope = (
|
||||
// looking for charts to be excluded: iterate over all charts
|
||||
// and looking for charts that have one of their parents in `rootPath` and not in selected items
|
||||
Object.entries(layout).forEach(([key, value]) => {
|
||||
const parents = value.parents || [];
|
||||
if (
|
||||
value.type === CHART_TYPE &&
|
||||
[DASHBOARD_ROOT_ID, ...value.parents]?.find(parent =>
|
||||
isExcluded(parent, key),
|
||||
)
|
||||
[DASHBOARD_ROOT_ID, ...parents]?.find(parent => isExcluded(parent, key))
|
||||
) {
|
||||
excluded.push(value.meta.chartId);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user