From bcb2156711aa5928ad96beb5149a2fa283b74225 Mon Sep 17 00:00:00 2001 From: hsm-lv Date: Fri, 1 Apr 2022 15:21:14 +0800 Subject: [PATCH] =?UTF-8?q?fix:nestedselect=E7=A7=BB=E5=8A=A8=E7=AB=AFchan?= =?UTF-8?q?ge=E4=BA=8B=E4=BB=B6=E5=A4=B1=E6=95=88=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/actions/ToastAction.ts | 2 +- src/renderers/Form/NestedSelect.tsx | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/actions/ToastAction.ts b/src/actions/ToastAction.ts index 45f369b88..474234c90 100644 --- a/src/actions/ToastAction.ts +++ b/src/actions/ToastAction.ts @@ -15,7 +15,7 @@ export class ToastAction implements Action { renderer: ListenerContext, event: RendererEvent ) { - event.context.env.notify?.(action.msgType, action.msg, action); + event.context.env.notify?.(action.msgType || 'info', action.msg, action); } } diff --git a/src/renderers/Form/NestedSelect.tsx b/src/renderers/Form/NestedSelect.tsx index 56b2de38d..d36177abb 100644 --- a/src/renderers/Form/NestedSelect.tsx +++ b/src/renderers/Form/NestedSelect.tsx @@ -895,6 +895,7 @@ export default class NestedSelectControl extends React.Component<