From a79c92f9e760e64b76846809de77511968b46098 Mon Sep 17 00:00:00 2001 From: nyne Date: Thu, 31 Jul 2025 16:43:58 +0800 Subject: [PATCH] fix collection page. --- frontend/src/pages/collection_page.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/src/pages/collection_page.tsx b/frontend/src/pages/collection_page.tsx index 9693896..ad7bdcc 100644 --- a/frontend/src/pages/collection_page.tsx +++ b/frontend/src/pages/collection_page.tsx @@ -33,8 +33,9 @@ export default function CollectionPage() { return; } - if (app.getPreFetchData()?.collection?.id === idInt) { - setCollection(app.getPreFetchData().collection); + const prefetchData = app.getPreFetchData(); + if (prefetchData?.collection?.id === idInt) { + setCollection(prefetchData.collection); return; }