فهرست منبع

Merge branch 'imprv/revert-deleted-pages' into imprv/normalize-legacy-pages

Taichi Masuyama 4 سال پیش
والد
کامیت
f6eb4883e2
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      packages/app/src/server/service/page.ts

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

@@ -1836,7 +1836,7 @@ class PageService {
       objectMode: true,
       async write(pages, encoding, callback) {
         // make list to create empty pages
-        const parentPathsSet = new Set(pages.map(page => pathlib.dirname(page.path)));
+        const parentPathsSet = new Set<string>(pages.map(page => pathlib.dirname(page.path)));
         const parentPaths = Array.from(parentPathsSet);
 
         // fill parents with empty pages