Skip to content

Commit

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

0 comments on commit 10608d4

Please sign in to comment.