fix: safe removal of tab with filters still scoped to a non-existing chart (#15650)

This commit is contained in:
Evan Rusackas
2021-07-12 23:43:53 -06:00
committed by GitHub
parent 2dc8bd6c30
commit 52ad779a27

View File

@@ -104,7 +104,7 @@ export const getAllActiveFilters = ({
};
// Iterate over all roots to find all affected charts
scope.rootPath.forEach((layoutItemId: string | number) => {
layout[layoutItemId].children.forEach((child: string) => {
layout[layoutItemId]?.children?.forEach((child: string) => {
// Need exclude from affected charts, charts that located in scope `excluded`
findAffectedCharts({
child,