fix(home): null check for possibly undefined filtered other table data due to insufficient permission (#37983)

This commit is contained in:
Đỗ Trọng Hải
2026-02-18 17:33:51 +07:00
committed by GitHub
parent a30492f55e
commit 9131739f98
2 changed files with 4 additions and 2 deletions

View File

@@ -62,7 +62,9 @@ function DashboardTable({
TableTab.Other,
);
const filteredOtherTabData = otherTabData.filter(obj => !('viz_type' in obj));
const filteredOtherTabData = otherTabData?.filter(
obj => !('viz_type' in obj),
);
const {
state: { loading, resourceCollection: dashboards },

View File

@@ -46,7 +46,7 @@ export interface DashboardTableProps {
user?: User;
mine: Array<Dashboard>;
showThumbnails?: boolean;
otherTabData: Array<Dashboard>;
otherTabData?: Array<Dashboard>;
otherTabFilters: Filter[];
otherTabTitle: string;
}