Skip to content

Commit

Permalink
feat: be sure the settings are saved when exiting the drawer
Browse files Browse the repository at this point in the history
  • Loading branch information
Devessier committed Sep 27, 2024
1 parent eeda2d6 commit b0b39f5
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ export const WorkflowEditActionFormSendEmail = ({
});
}, 1_000);

useEffect(() => {
return () => {
saveAction.flush();
};
}, [saveAction]);

const handleSave = form.handleSubmit(saveAction);

return (
Expand Down

0 comments on commit b0b39f5

Please sign in to comment.