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

hugh pushed a commit to branch hm/ar-filters
in repository https://gitbox.apache.org/repos/asf/superset.git


The following commit(s) were added to refs/heads/hm/ar-filters by this push:
     new b9627261f1 guard statement
b9627261f1 is described below

commit b9627261f10b73de68dd3f09b45d51a559f24ba7
Author: Hugh Miles <[email protected]>
AuthorDate: Thu Mar 20 19:14:21 2025 -0400

    guard statement
---
 superset-frontend/src/features/alerts/AlertReportModal.tsx | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/superset-frontend/src/features/alerts/AlertReportModal.tsx 
b/superset-frontend/src/features/alerts/AlertReportModal.tsx
index 116773d91e..16596f92c1 100644
--- a/superset-frontend/src/features/alerts/AlertReportModal.tsx
+++ b/superset-frontend/src/features/alerts/AlertReportModal.tsx
@@ -1491,8 +1491,11 @@ const AlertReportModal: 
FunctionComponent<AlertReportModalProps> = ({
   useEffect(() => {
     if (resource) {
       // Add native filter settings
-      // @ts-ignore
-      setNativeFilterData(resource.extra?.dashboard.nativeFilters);
+
+      if (resource.extra?.dashboard?.nativeFilters) {
+        // @ts-ignore
+        setNativeFilterData(resource.extra?.dashboard?.nativeFilters);
+      }
 
       // Add notification settings
       const settings = (resource.recipients || []).map(setting => {

Reply via email to