yohei0125 4 лет назад
Родитель
Сommit
9fba3aae0e
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      packages/app/src/server/routes/apiv3/pages.js

+ 1 - 1
packages/app/src/server/routes/apiv3/pages.js

@@ -641,7 +641,7 @@ module.exports = (crowi) => {
 
 
     const page = await Page.findByIdAndViewerToEdit(pageId, req.user, true);
     const page = await Page.findByIdAndViewerToEdit(pageId, req.user, true);
 
 
-    const isEmptyAndNotRecursively = page?.isEmpty && isRecursively;
+    const isEmptyAndNotRecursively = page?.isEmpty && !isRecursively;
     if (page == null || isEmptyAndNotRecursively) {
     if (page == null || isEmptyAndNotRecursively) {
       res.code = 'Page is not found';
       res.code = 'Page is not found';
       logger.error('Failed to find the pages');
       logger.error('Failed to find the pages');