fix: player throws error whenever settings panel is openned

This commit is contained in:
--remove-section committed 2026-10-20 18:08:50 +05:30
1 parent 0c50acddd9
commit 2d5f49c32e
11 files changed
+113 -115

No files matched your search

+2 -2
View File
@@ -105,7 +105,7 @@ function PhotosPlayer() {
if (pathToSave) {
download(
`${api?.basePath}/Items/${currentPhoto?.Id}/Download?api_key=${api?.accessToken}`,
`${api?.basePath}/Items/${currentPhoto?.Id}/Download?ApiKey=${api?.accessToken}`,
pathToSave,
);
enqueueSnackbar("Image download queued.", { variant: "info" });
@@ -122,7 +122,7 @@ function PhotosPlayer() {
key={currentPhoto?.Id ?? "noPhoto"}
src={
currentPhoto
? `${api?.basePath}/Items/${currentPhoto.Id}/Download?api_key=${api?.accessToken}`
? `${api?.basePath}/Items/${currentPhoto.Id}/Download?ApiKey=${api?.accessToken}`
: brokenImage
}
alt="Item"