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

Fixed condition for shouldNew passing into PageService.prototype.create

Taichi Masuyama 3 жил өмнө
parent
commit
b512aea08a

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

@@ -3418,7 +3418,7 @@ class PageService {
     }
 
     // Prepare a page document
-    const shouldNew = !isGrantRestricted;
+    const shouldNew = isGrantRestricted;
     const page = await this.preparePageDocumentToCreate(path, shouldNew);
 
     // Set field