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

+ 1 - 1
packages/app/src/server/routes/page.js

@@ -1229,7 +1229,7 @@ module.exports = function(crowi, app) {
 
 
   validator.revertRemove = [
   validator.revertRemove = [
     body('recursively')
     body('recursively')
-      .custom(v => v === 'true' || v === true || null)
+      .custom(v => v === 'true' || v === true || v == null)
       .withMessage('The body property "recursively" must be "true" or true. (Omit param for false)'),
       .withMessage('The body property "recursively" must be "true" or true. (Omit param for false)'),
   ];
   ];