Skip to content

Commit 87efb72

Browse files
justinparkmichael-s-molina
authored andcommitted
fix(native filter): undefined layout type on filterInScope (#30164)
(cherry picked from commit e02b18c)
1 parent 46d96d2 commit 87efb72

File tree

1 file changed

+1
-1
lines changed
  • superset-frontend/src/dashboard/components/nativeFilters

1 file changed

+1
-1
lines changed

superset-frontend/src/dashboard/components/nativeFilters/state.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ function useSelectChartTabParents() {
8484
layoutItem => layoutItem.meta?.chartId === chartId,
8585
);
8686
return chartLayoutItem?.parents.filter(
87-
(parent: string) => dashboardLayout[parent].type === TAB_TYPE,
87+
(parent: string) => dashboardLayout[parent]?.type === TAB_TYPE,
8888
);
8989
};
9090
}

0 commit comments

Comments
 (0)