Explorar el Código

128163 improve if block

soumaeda hace 2 años
padre
commit
03372b97dc
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      apps/app/src/server/routes/apiv3/page.js

+ 1 - 1
apps/app/src/server/routes/apiv3/page.js

@@ -627,7 +627,7 @@ module.exports = (crowi) => {
 
 
     // replace root page name to '_top'
-    if (!fileName) {
+    if (fileName === '') {
       fileName = '_top';
     }