mirror of
https://github.com/apache/superset.git
synced 2026-04-07 10:31:50 +00:00
fix: safe removal of tab with filters still scoped to a non-existing chart (#15650)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user