Explorar o código

fix: #663 An error occured by uploading attachment file when the page is not exists

Yuki Takei %!s(int64=7) %!d(string=hai) anos
pai
achega
5feb38600b
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/client/js/components/PageEditor.js

+ 2 - 2
src/client/js/components/PageEditor.js

@@ -139,9 +139,9 @@ export default class PageEditor extends React.Component {
         }
         }
         this.refs.editor.insertText(insertText);
         this.refs.editor.insertText(insertText);
 
 
-        // update page information if created
+        // when if created newly
         if (res.pageCreated) {
         if (res.pageCreated) {
-          this.pageSavedHandler(res.page);
+          // do nothing
         }
         }
       })
       })
       .catch(this.apiErrorHandler)
       .catch(this.apiErrorHandler)