mirror of
https://github.com/wgh136/nysoure.git
synced 2025-09-27 12:17:24 +00:00
SEO for collection page.
This commit is contained in:
@@ -33,6 +33,11 @@ export default function CollectionPage() {
|
||||
return;
|
||||
}
|
||||
|
||||
if (app.getPreFetchData()?.collection?.id === idInt) {
|
||||
setCollection(app.getPreFetchData().collection);
|
||||
return;
|
||||
}
|
||||
|
||||
network.getCollection(idInt).then((res) => {
|
||||
if (res.success) {
|
||||
setCollection(res.data!);
|
||||
@@ -43,7 +48,7 @@ export default function CollectionPage() {
|
||||
});
|
||||
}
|
||||
});
|
||||
}, [resourcesKey]);
|
||||
}, [id]);
|
||||
|
||||
const toBeDeletedRID = useRef<number | null>(null);
|
||||
|
||||
|
Reference in New Issue
Block a user