Explorar o código

Fixed descCount

Taichi Masuyama %!s(int64=4) %!d(string=hai) anos
pai
achega
e751e12d09
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      packages/app/src/server/service/page.ts

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

@@ -2316,7 +2316,7 @@ class PageService {
     }
 
     // Update descendantCount
-    const inc = updatedPage.descendantCount + 1;
+    const inc = 1;
     await this.updateDescendantCountOfAncestors(updatedPage.parent, inc, true);
 
     return updatedPage;