mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-15 21:16:17 +02:00
use correct id for runtime images in useItemImageUrl
This commit is contained in:
@@ -162,7 +162,7 @@ const PlaylistRowButton = memo(({ item, name, onContextMenu, to }: PlaylistRowBu
|
||||
);
|
||||
|
||||
const imageUrl = useItemImageUrl({
|
||||
id: item.id,
|
||||
id: item.imageId || undefined,
|
||||
itemType: LibraryItem.PLAYLIST,
|
||||
type: 'table',
|
||||
});
|
||||
|
||||
@@ -153,7 +153,7 @@ const SidebarImage = () => {
|
||||
const currentSong = usePlayerSong();
|
||||
|
||||
const imageUrl = useItemImageUrl({
|
||||
id: currentSong?.id,
|
||||
id: currentSong?.imageId || undefined,
|
||||
itemType: LibraryItem.SONG,
|
||||
type: 'sidebar',
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user