Yuki Takei 2 лет назад
Родитель
Сommit
c4e1fe7748
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      apps/app/src/server/service/page.ts

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

@@ -375,7 +375,7 @@ class PageService {
 
 
     const activity = await this.crowi.activityService.createActivity(parameters);
     const activity = await this.crowi.activityService.createActivity(parameters);
 
 
-    const isExist = await Page.exists({ path: newPagePath });
+    const isExist = await Page.exists({ path: newPagePath, isEmpty: false });
     if (isExist) {
     if (isExist) {
       throw Error(`Page already exists at ${newPagePath}`);
       throw Error(`Page already exists at ${newPagePath}`);
     }
     }