diff --git a/src/components/Notes/NoteSubmit.tsx b/src/components/Notes/NoteSubmit.tsx index 9322077..9211b10 100644 --- a/src/components/Notes/NoteSubmit.tsx +++ b/src/components/Notes/NoteSubmit.tsx @@ -58,6 +58,8 @@ export const NoteSubmit = ({ method: 'post', encType: 'application/json' }) + + typeof handleClose === 'function' && handleClose() } const handlePreviewToggle = () => {