From 58f5c9ce7c3c0773ac8cdb5e1f036dbe5dffec2e Mon Sep 17 00:00:00 2001 From: Kentai Radiquum Date: Sun, 17 Nov 2024 02:29:50 +0500 Subject: [PATCH] fix: try to fetch user collection info for anonymous user --- app/components/ReleaseInfo/ReleaseInfo.UserList.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/app/components/ReleaseInfo/ReleaseInfo.UserList.tsx b/app/components/ReleaseInfo/ReleaseInfo.UserList.tsx index 1bebecd..0cc95c5 100644 --- a/app/components/ReleaseInfo/ReleaseInfo.UserList.tsx +++ b/app/components/ReleaseInfo/ReleaseInfo.UserList.tsx @@ -146,6 +146,7 @@ const AddReleaseToCollectionModal = (props: { profile_id: number; }) => { const getKey = (pageIndex: number, previousPageData: any) => { + if (!props.token) return null; if (previousPageData && !previousPageData.content.length) return null; return `${ENDPOINTS.collection.userCollections}/${props.profile_id}/${pageIndex}?token=${props.token}`; };