diff --git a/frontend/src/utils/images.ts b/frontend/src/utils/images.ts index 388e56c12dd..61d26a7198e 100644 --- a/frontend/src/utils/images.ts +++ b/frontend/src/utils/images.ts @@ -445,18 +445,15 @@ export function getLogo( tag?: string; } = {} ): ImageUrlInfo { - let imgType; + const imgType = ImageType.Logo; let imgTag; let itemId: string | null | undefined = item.Id; if (tag) { - imgType = ImageType.Logo; imgTag = tag; } else if (item.ImageTags?.Logo) { - imgType = ImageType.Logo; imgTag = item.ImageTags.Logo; } else if (item.ParentLogoImageTag && item.ParentLogoItemId) { - imgType = ImageType.Logo; imgTag = item.ParentLogoImageTag; itemId = item.ParentLogoItemId; } @@ -468,6 +465,6 @@ export function getLogo( ratio }, imgType), blurhash: - imgType && imgTag ? item.ImageBlurHashes?.[imgType]?.[imgTag] : undefined + imgTag ? item.ImageBlurHashes?.[imgType]?.[imgTag] : undefined }; }