Skip to content

Commit ee31e1c

Browse files
Merge pull request #1996 from iamfaran/fix/1851-toast
[Fix]: #1851 toast open without second arg
2 parents 26f4dd3 + c70aedb commit ee31e1c

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)