mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
fix(home): null check for possibly undefined filtered other table data due to insufficient permission (#37983)
This commit is contained in:
@@ -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 },
|
||||
|
||||
@@ -46,7 +46,7 @@ export interface DashboardTableProps {
|
||||
user?: User;
|
||||
mine: Array<Dashboard>;
|
||||
showThumbnails?: boolean;
|
||||
otherTabData: Array<Dashboard>;
|
||||
otherTabData?: Array<Dashboard>;
|
||||
otherTabFilters: Filter[];
|
||||
otherTabTitle: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user