mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-10 04:30:25 +02:00
fix left control and context menu image display for queue items of different server
This commit is contained in:
@@ -48,6 +48,7 @@ export const ContextMenuPreview = ({ items, itemType }: ContextMenuPreviewProps)
|
|||||||
const imageUrl = useItemImageUrl({
|
const imageUrl = useItemImageUrl({
|
||||||
id: (firstItem as { imageId?: string })?.imageId,
|
id: (firstItem as { imageId?: string })?.imageId,
|
||||||
itemType: itemType || LibraryItem.SONG,
|
itemType: itemType || LibraryItem.SONG,
|
||||||
|
serverId: (firstItem as { _serverId?: string })?._serverId,
|
||||||
type: 'table',
|
type: 'table',
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -156,6 +156,7 @@ const SidebarImage = () => {
|
|||||||
const imageUrl = useItemImageUrl({
|
const imageUrl = useItemImageUrl({
|
||||||
id: currentSong?.imageId || undefined,
|
id: currentSong?.imageId || undefined,
|
||||||
itemType: LibraryItem.SONG,
|
itemType: LibraryItem.SONG,
|
||||||
|
serverId: currentSong?._serverId,
|
||||||
type: 'sidebar',
|
type: 'sidebar',
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user