mirror of https://github.com/apache/superset.git
fix: safe removal of tab with filters still scoped to a non-existing chart (#15650)
This commit is contained in:
parent
2dc8bd6c30
commit
52ad779a27
|
@ -104,7 +104,7 @@ export const getAllActiveFilters = ({
|
||||||
};
|
};
|
||||||
// Iterate over all roots to find all affected charts
|
// Iterate over all roots to find all affected charts
|
||||||
scope.rootPath.forEach((layoutItemId: string | number) => {
|
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`
|
// Need exclude from affected charts, charts that located in scope `excluded`
|
||||||
findAffectedCharts({
|
findAffectedCharts({
|
||||||
child,
|
child,
|
||||||
|
|
Loading…
Reference in New Issue