Yuki Takei 2 лет назад
Родитель
Сommit
29be07c3e7
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      apps/app/src/stores/bookmark.ts

+ 1 - 1
apps/app/src/stores/bookmark.ts

@@ -22,7 +22,7 @@ export const useSWRBookmarkInfo = (pageId: string | null | undefined): SWRRespon
   );
 };
 
-export const useSWRxUserBookmarks = (userId: string | null): SWRResponse<IPageHasId[], Error> => {
+export const useSWRxUserBookmarks = (userId?: string): SWRResponse<IPageHasId[], Error> => {
   return useSWRImmutable(
     userId != null ? `/bookmarks/${userId}` : null,
     endpoint => apiv3Get(endpoint).then((response) => {