Skip to content

Commit

Permalink
FIx missing type use case
Browse files Browse the repository at this point in the history
  • Loading branch information
asvarcas committed Nov 9, 2021
1 parent cf0ffc9 commit 8db627a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/ra-core/src/sideEffect/useNotify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,11 @@ const useNotify = () => {
}
)
);
} else {
} else if (type) {
const { type: messageType, ...options } = type;
dispatch(showNotification(message, messageType, options));
} else {
dispatch(showNotification(message));
}
},
[dispatch]
Expand Down

0 comments on commit 8db627a

Please sign in to comment.