Browse Source

fix lint err

kaori 3 years ago
parent
commit
029c4ed4f2
1 changed files with 2 additions and 2 deletions
  1. 2 2
      packages/app/src/components/PageEditor.tsx

+ 2 - 2
packages/app/src/components/PageEditor.tsx

@@ -369,8 +369,8 @@ const PageEditor = (props: Props): JSX.Element => {
       optionsToSave = currentOptionsToSave;
     }
 
-    await saveAndReload(optionsToSave, { pageId, path: currentPagePath || currentPathname, revisionId: currentPage?.revision._id }, markdown);
-  }, [currentPage?.revision._id,
+    await saveAndReload(optionsToSave, { pageId, path: currentPagePath || currentPathname, revisionId: currentPage?.revision?._id }, markdown);
+  }, [currentPage?.revision?._id,
       currentPagePath,
       currentPathname,
       editorMode,