fix(queue): use song serverId when switching servers

This commit is contained in:
Kendall Garner
2026-01-08 20:43:35 -08:00
parent f465e34ea3
commit bc40123891
4 changed files with 6 additions and 0 deletions
@@ -36,6 +36,7 @@ const BaseItemImage = (
props: Omit<ImageProps, 'id' | 'src'> & {
id?: null | string;
itemType: LibraryItem;
serverId?: null | string;
src?: null | string;
type?: keyof z.infer<typeof GeneralSettingsSchema>['imageRes'];
},
@@ -46,6 +47,7 @@ const BaseItemImage = (
id: props.id,
imageUrl: src,
itemType: props.itemType,
serverId: props.serverId || undefined,
type: props.type,
});
@@ -238,6 +238,7 @@ export const QueueSongTitleCombinedColumn = (props: ItemTableListInnerColumn) =>
containerClassName={styles.image}
id={item?.imageId}
itemType={item?._itemType}
serverId={item?._serverId}
src={item?.imageUrl}
type="table"
/>
@@ -85,12 +85,14 @@ export const FullScreenPlayerImage = () => {
const currentImageUrl = useItemImageUrl({
id: currentSong?.imageId || undefined,
itemType: LibraryItem.SONG,
serverId: currentSong?._serverId,
type: 'fullScreenPlayer',
});
const nextImageUrl = useItemImageUrl({
id: nextSong?.imageId || undefined,
itemType: LibraryItem.SONG,
serverId: nextSong?._serverId,
type: 'fullScreenPlayer',
});
@@ -124,6 +124,7 @@ export const LeftControls = () => {
id={currentSong?.imageId}
itemType={LibraryItem.SONG}
loading="eager"
serverId={currentSong?._serverId}
type="table"
/>
</Tooltip>