We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 479fec4 commit 3ec9691Copy full SHA for 3ec9691
src/useOnSubmit.ts
@@ -65,7 +65,7 @@ const useOnSubmit = ({
65
const success =
66
mutationOptions?.onSuccess ??
67
((record: RaRecord) => {
68
- notify('ra.notification.updated', {
+ notify(isCreate ? 'ra.notification.created' : 'ra.notification.updated', {
69
type: 'info',
70
messageArgs: { smart_count: 1 },
71
});
0 commit comments