itizawa hace 5 años
padre
commit
736bd38334
Se han modificado 1 ficheros con 1 adiciones y 3 borrados
  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();
     }
   }