mirror of
https://github.com/jeffvli/feishin.git
synced 2026-06-24 21:07:41 +02:00
use correct id for runtime images in useItemImageUrl
This commit is contained in:
@@ -37,7 +37,7 @@ const AlbumDetailRoute = () => {
|
||||
|
||||
const imageUrl =
|
||||
useItemImageUrl({
|
||||
id: albumId,
|
||||
id: detailQuery?.data?.imageId || undefined,
|
||||
itemType: LibraryItem.ALBUM,
|
||||
type: 'itemCard',
|
||||
}) || '';
|
||||
|
||||
@@ -115,7 +115,7 @@ const DummyAlbumDetailRoute = () => {
|
||||
];
|
||||
|
||||
const imageUrl = useItemImageUrl({
|
||||
id: albumId,
|
||||
id: detailQuery?.data?.imageId || undefined,
|
||||
itemType: LibraryItem.ALBUM,
|
||||
type: 'header',
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user