Browse Source

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

Shun Miyazawa 4 tháng trước cách đây
mục cha
commit
d021219a11
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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),
             )