Przeglądaj źródła

revert unnecessary changes

Yuki Takei 2 lat temu
rodzic
commit
29be07c3e7
1 zmienionych plików z 1 dodań i 1 usunięć
  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) => {