Browse Source

Fixed descCount

Taichi Masuyama 4 years ago
parent
commit
e751e12d09
1 changed files with 1 additions and 1 deletions
  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;