Fix unstar on album page (jellyfin)

This commit is contained in:
jeffvli
2022-01-13 00:47:16 -08:00
parent 3526ccb40e
commit 41a471cf3d

View File

@@ -168,7 +168,7 @@ const AlbumView = ({ ...rest }: any) => {
await apiController({
serverType: config.serverType,
endpoint: 'unstar',
args: config.serverType === Server.Subsonic ? { id: data.id, type: 'album' } : null,
args: { id: data.id, type: 'album' },
});
queryClient.setQueryData(['album', id], { ...data, starred: undefined });
}