yuken 3 anni fa
parent
commit
c97e716afa

+ 3 - 2
packages/app/src/components/PageComment/CommentEditor.tsx

@@ -272,8 +272,9 @@ const CommentEditor = (props: PropsType): JSX.Element => {
     catch (err) {
       apiErrorHandler(err);
     }
-
-    editorRef.current.terminateUploadingState();
+    finally {
+      editorRef.current.terminateUploadingState();
+    }
   };
 
   const getCommentHtml = () => {