Explorar o código

fix: ensure bookmarks are filtered correctly by checking for null page values

Shun Miyazawa hai 4 meses
pai
achega
d021219a11
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      apps/app/src/server/routes/apiv3/bookmarks.ts

+ 1 - 0
apps/app/src/server/routes/apiv3/bookmarks.ts

@@ -264,6 +264,7 @@ module.exports = (crowi) => {
         const filteredBookmarks = isHidingUserPages
           ? userRootBookmarks.filter(
               (bookmark) =>
+                bookmark.page != null &&
                 !isUserPage(bookmark.page.path) &&
                 !isUsersTopPage(bookmark.page.path),
             )