Skip to content

Commit

Permalink
Merge pull request #6760 from WiXSL/notification-warning
Browse files Browse the repository at this point in the history
Fix Don't show a warning if only one argument is passed to `useNotify`
  • Loading branch information
djhi committed Nov 10, 2021
2 parents e71078b + 10608d4 commit ad19414
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ra-core/src/sideEffect/useNotify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const useNotify = () => {
autoHideDuration?: number,
multiLine?: boolean
) => {
if (typeof type === 'string' || !type) {
if (typeof type === 'string') {
warning(
true,
'This way of calling useNotify callback is deprecated. Please use the new syntax passing notify("[Your message]", { ...restOfArguments })'
Expand Down

0 comments on commit ad19414

Please sign in to comment.