Skip to content

Commit

Permalink
fix(bug): params lost
Browse files Browse the repository at this point in the history
  • Loading branch information
sanduluca committed Jan 15, 2025
1 parent fe6b6d0 commit 7d6b49b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/core/services/NotificationEmitterApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,13 @@ export const notify: Notify = (

if (typeof titleOrSetup === 'string') {
setupObj = {
...(typeof descriptionOrSetup === 'object' ? descriptionOrSetup : setup),
params: {
title: titleOrSetup,
description: typeof descriptionOrSetup === 'string' ? descriptionOrSetup : undefined,
...((typeof descriptionOrSetup === 'object' ? descriptionOrSetup.params : setup?.params) ||
{}),
},
...(typeof descriptionOrSetup === 'object' ? descriptionOrSetup : setup),
}
} else {
setupObj = titleOrSetup
Expand Down

0 comments on commit 7d6b49b

Please sign in to comment.