diff --git a/superset-frontend/src/features/home/DashboardTable.tsx b/superset-frontend/src/features/home/DashboardTable.tsx index 0bc5f5fa446..61013e8dba5 100644 --- a/superset-frontend/src/features/home/DashboardTable.tsx +++ b/superset-frontend/src/features/home/DashboardTable.tsx @@ -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 }, diff --git a/superset-frontend/src/views/CRUD/types.ts b/superset-frontend/src/views/CRUD/types.ts index 5ed2c6220dd..5049323055b 100644 --- a/superset-frontend/src/views/CRUD/types.ts +++ b/superset-frontend/src/views/CRUD/types.ts @@ -46,7 +46,7 @@ export interface DashboardTableProps { user?: User; mine: Array; showThumbnails?: boolean; - otherTabData: Array; + otherTabData?: Array; otherTabFilters: Filter[]; otherTabTitle: string; }