Skip to content

Commit

Permalink
Fix linter warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
fzaninotto committed Jul 1, 2024
1 parent 9bc45e6 commit 8bb4ebe
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/useOnSubmit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,13 @@ const useOnSubmit = ({
const success =
mutationOptions?.onSuccess ??
((record: RaRecord) => {
notify(isCreate ? 'ra.notification.created' : 'ra.notification.updated', {
type: 'info',
messageArgs: { smart_count: 1 },
});
notify(
isCreate ? 'ra.notification.created' : 'ra.notification.updated',
{
type: 'info',
messageArgs: { smart_count: 1 },
},
);
redirect(redirectTo, resource, record.id, record);
});
success(
Expand Down

0 comments on commit 8bb4ebe

Please sign in to comment.