itizawa 5 lat temu
rodzic
commit
736bd38334
1 zmienionych plików z 1 dodań i 3 usunięć
  1. 1 3
      src/client/js/components/PageEditor.jsx

+ 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();
     }
   }