Skip to content

Commit

Permalink
fix(native-filters): fix filter scope error (#14426)
Browse files Browse the repository at this point in the history
  • Loading branch information
villebro authored Apr 30, 2021
1 parent 982a91e commit 319125e
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 319125e

Please sign in to comment.