2
0
Эх сурвалжийг харах

Not check empty page existance for shouldCreateNewPage

Taichi Masuyama 4 жил өмнө
parent
commit
145eeff3ba

+ 1 - 1
packages/app/src/server/service/page.ts

@@ -2285,7 +2285,7 @@ class PageService {
 
     let page;
 
-    const shouldCreateNewPage = pages[0] == null && emptyPage != null;
+    const shouldCreateNewPage = pages[0] == null;
     if (shouldCreateNewPage) {
       const notEmptyParent = await Page.findNotEmptyParentRecursively(emptyPage);