You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ju...@apache.org on 2024/09/05 17:52:02 UTC

(superset) branch master updated: fix(native filter): undefined layout type on filterInScope (#30164)

This is an automated email from the ASF dual-hosted git repository.

justinpark pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git


The following commit(s) were added to refs/heads/master by this push:
     new e02b18c63c fix(native filter): undefined layout type on filterInScope (#30164)
e02b18c63c is described below

commit e02b18c63ce6aa9ab52971a2e6592104a07a1469
Author: JUST.in DO IT <ju...@airbnb.com>
AuthorDate: Thu Sep 5 10:51:55 2024 -0700

    fix(native filter): undefined layout type on filterInScope (#30164)
---
 superset-frontend/src/dashboard/components/nativeFilters/state.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/superset-frontend/src/dashboard/components/nativeFilters/state.ts b/superset-frontend/src/dashboard/components/nativeFilters/state.ts
index 38a50c7b06..04ef87e747 100644
--- a/superset-frontend/src/dashboard/components/nativeFilters/state.ts
+++ b/superset-frontend/src/dashboard/components/nativeFilters/state.ts
@@ -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,
     );
   };
 }