mirror of https://github.com/apache/superset.git
fix: Dashboard report creation error handling (#19859)
This commit is contained in:
parent
768e4b7a54
commit
ad878b07e4
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue