Skip to content

Commit c70aedb

Browse files
committed
[Fix]: #1851 toast open without second arg
1 parent 060a20e commit c70aedb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/packages/lowcoder/src/comps/hooks/toastComp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const showNotification = (
1717
level: "open" | "info" | "success" | "warning" | "error"
1818
) => {
1919
const text = params?.[0] as string;
20-
const options = params?.[1] as JSONObject;
20+
const options = (params?.[1] as JSONObject) || {};
2121

2222
const { message , duration, id, placement, dismissible } = options;
2323

0 commit comments

Comments
 (0)