You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ha...@apache.org on 2026/02/15 05:14:07 UTC
(superset) 01/01: fix(home): null check for possibly undefined filtered other table data due to insufficient permission
This is an automated email from the ASF dual-hosted git repository.
hainenber pushed a commit to branch fix/handle-possibly-null-data-due-to-insufficient-user-permission-in-dashboard-table
in repository https://gitbox.apache.org/repos/asf/superset.git
commit d686c66ec8441961f78a3d56e3eff529874517ef
Author: hainenber <do...@gmail.com>
AuthorDate: Sun Feb 15 11:53:08 2026 +0700
fix(home): null check for possibly undefined filtered other table data due to insufficient permission
Signed-off-by: hainenber <do...@gmail.com>
---
superset-frontend/src/features/home/DashboardTable.tsx | 2 +-
superset-frontend/src/views/CRUD/types.ts | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/superset-frontend/src/features/home/DashboardTable.tsx b/superset-frontend/src/features/home/DashboardTable.tsx
index 0bc5f5fa446..319b1ba09f7 100644
--- a/superset-frontend/src/features/home/DashboardTable.tsx
+++ b/superset-frontend/src/features/home/DashboardTable.tsx
@@ -62,7 +62,7 @@ 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<Dashboard>;
showThumbnails?: boolean;
- otherTabData: Array<Dashboard>;
+ otherTabData?: Array<Dashboard>;
otherTabFilters: Filter[];
otherTabTitle: string;
}