fix(native filter): undefined layout type on filterInScope (#30164)

This commit is contained in:
JUST.in DO IT 2024-09-05 10:51:55 -07:00 committed by GitHub
parent de3de541e7
commit e02b18c63c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ function useSelectChartTabParents() {
layoutItem => layoutItem.meta?.chartId === chartId,
);
return chartLayoutItem?.parents.filter(
(parent: string) => dashboardLayout[parent].type === TAB_TYPE,
(parent: string) => dashboardLayout[parent]?.type === TAB_TYPE,
);
};
}