Răsfoiți Sursa

Merge pull request #5350 from weseek/fix/create-page

imprv: Create page
Yuki Takei 4 ani în urmă
părinte
comite
6297551a30
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      packages/app/src/server/models/page.ts

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

@@ -225,7 +225,7 @@ schema.statics.getParentAndFillAncestors = async function(path: string): Promise
   /*
    * Fill parents if parent is null
    */
-  const ancestorPaths = collectAncestorPaths(path, [path]); // paths of parents need to be created
+  const ancestorPaths = collectAncestorPaths(path); // paths of parents need to be created
 
   // just create ancestors with empty pages
   await this.createEmptyPagesByPaths(ancestorPaths);