2
0
itizawa 5 жил өмнө
parent
commit
736bd38334

+ 1 - 3
src/client/js/components/PageEditor.jsx

@@ -103,11 +103,9 @@ class PageEditor extends React.Component {
    */
   onMarkdownChanged(value) {
     const { pageContainer } = this.props;
-    const { revisionId } = pageContainer.state;
     this.setMarkdownStateWithDebounce(value);
-
     // only when the first time to edit
-    if (!revisionId) {
+    if (!pageContainer.state.revisionId) {
       this.saveDraftWithDebounce();
     }
   }