yuken 3 лет назад
Родитель
Сommit
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 = () => {