Explorar el Código

Fixed descCount

Taichi Masuyama hace 4 años
padre
commit
e751e12d09
Se han modificado 1 ficheros con 1 adiciones y 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;