diff --git a/client/packages/lowcoder/src/comps/hooks/toastComp.ts b/client/packages/lowcoder/src/comps/hooks/toastComp.ts index 272d55715..fdcee872f 100644 --- a/client/packages/lowcoder/src/comps/hooks/toastComp.ts +++ b/client/packages/lowcoder/src/comps/hooks/toastComp.ts @@ -17,7 +17,7 @@ const showNotification = ( level: "open" | "info" | "success" | "warning" | "error" ) => { const text = params?.[0] as string; - const options = params?.[1] as JSONObject; + const options = (params?.[1] as JSONObject) || {}; const { message , duration, id, placement, dismissible } = options;