Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(native-filters): fix filter scope error #14426

Merged
merged 1 commit into from
Apr 30, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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