فهرست منبع

resolve conflict

yuken 4 سال پیش
والد
کامیت
c97e716afa
1فایلهای تغییر یافته به همراه3 افزوده شده و 2 حذف شده
  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 = () => {