Skip to content

Commit

Permalink
Fix form cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
dujesa committed Jan 5, 2024
1 parent e99f7aa commit 440c917
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apps/admin/src/pages/NotificationsPage/NotificationsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ const NotificationsPage = () => {
});
}, [form, selectedNotification, isOpenUpdate]);

useEffect(() => {
form.reset();
}, [form, form.formState.isSubmitSuccessful]);

if (isLoading) {
return <div>Loading...</div>;
}
Expand Down

0 comments on commit 440c917

Please sign in to comment.