2
0
kaori 3 жил өмнө
parent
commit
029c4ed4f2

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

@@ -369,8 +369,8 @@ const PageEditor = (props: Props): JSX.Element => {
       optionsToSave = currentOptionsToSave;
       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,
       currentPagePath,
       currentPathname,
       currentPathname,
       editorMode,
       editorMode,