fix collection page.

This commit is contained in:
2025-07-31 16:43:58 +08:00
parent 5ef6b091e8
commit a79c92f9e7

View File

@@ -33,8 +33,9 @@ export default function CollectionPage() {
return; return;
} }
if (app.getPreFetchData()?.collection?.id === idInt) { const prefetchData = app.getPreFetchData();
setCollection(app.getPreFetchData().collection); if (prefetchData?.collection?.id === idInt) {
setCollection(prefetchData.collection);
return; return;
} }