Skip to content

Commit 7d6b49b

Browse files
committed
fix(bug): params lost
1 parent fe6b6d0 commit 7d6b49b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/core/services/NotificationEmitterApi.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,13 @@ export const notify: Notify = (
2525

2626
if (typeof titleOrSetup === 'string') {
2727
setupObj = {
28-
...(typeof descriptionOrSetup === 'object' ? descriptionOrSetup : setup),
2928
params: {
3029
title: titleOrSetup,
3130
description: typeof descriptionOrSetup === 'string' ? descriptionOrSetup : undefined,
31+
...((typeof descriptionOrSetup === 'object' ? descriptionOrSetup.params : setup?.params) ||
32+
{}),
3233
},
34+
...(typeof descriptionOrSetup === 'object' ? descriptionOrSetup : setup),
3335
}
3436
} else {
3537
setupObj = titleOrSetup

0 commit comments

Comments
 (0)