소스 검색

revert unnecessary changes

Yuki Takei 2 년 전
부모
커밋
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(
   return useSWRImmutable(
     userId != null ? `/bookmarks/${userId}` : null,
     userId != null ? `/bookmarks/${userId}` : null,
     endpoint => apiv3Get(endpoint).then((response) => {
     endpoint => apiv3Get(endpoint).then((response) => {