You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by er...@apache.org on 2022/04/27 04:53:14 UTC
[superset] branch master updated: fix: Dashboard report creation error handling (#19859)
This is an automated email from the ASF dual-hosted git repository.
erikrit 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 ad878b07e4 fix: Dashboard report creation error handling (#19859)
ad878b07e4 is described below
commit ad878b07e48edb4059fbc6620accd2f7b993ae4b
Author: Erik Ritter <er...@airbnb.com>
AuthorDate: Tue Apr 26 21:52:58 2022 -0700
fix: Dashboard report creation error handling (#19859)
---
superset-frontend/src/components/ReportModal/index.tsx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/superset-frontend/src/components/ReportModal/index.tsx b/superset-frontend/src/components/ReportModal/index.tsx
index 7707a22896..c45d8fad47 100644
--- a/superset-frontend/src/components/ReportModal/index.tsx
+++ b/superset-frontend/src/components/ReportModal/index.tsx
@@ -129,7 +129,7 @@ type ReportActionType =
}
| {
type: ActionType.error;
- payload: { name: string[] };
+ payload: { name?: string[] };
};
const TEXT_BASED_VISUALIZATION_TYPES = [
@@ -175,7 +175,7 @@ const reportReducer = (
case ActionType.error:
return {
...state,
- error: action.payload?.name[0] || defaultErrorMsg,
+ error: action.payload?.name?.[0] || defaultErrorMsg,
};
default:
return state;