Explorar el Código

resolve conflict

yuken hace 4 años
padre
commit
c97e716afa
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  1. 3 2
      packages/app/src/components/PageComment/CommentEditor.tsx

+ 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 = () => {