Explorar o código

fix all page not found

Futa Arai hai 6 meses
pai
achega
84687fefcf
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      apps/app/src/server/routes/apiv3/page/index.ts

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

@@ -209,7 +209,7 @@ module.exports = (crowi: Crowi) => {
         | IDataWithMeta<null, IPageNotFoundInfo> = {
         data: null,
       };
-      let pages: HydratedDocument<PageDocument>[] = [];
+      let pages: HydratedDocument<PageDocument>[] | undefined;
       try {
         if (isSharedPage) {
           const shareLink = await ShareLink.findOne({