Check for images for items without images
This commit is contained in:
@@ -604,12 +604,14 @@ import 'programStyles';
|
||||
imgTag = item.ParentBackdropImageTags[0];
|
||||
}
|
||||
|
||||
imgUrl = apiClient.getScaledImageUrl(item.Id, {
|
||||
type: imgType,
|
||||
maxHeight: height,
|
||||
maxWidth: width,
|
||||
tag: imgTag
|
||||
});
|
||||
if (imgTag && imgType) {
|
||||
imgUrl = apiClient.getScaledImageUrl(item.Id, {
|
||||
type: imgType,
|
||||
maxHeight: height,
|
||||
maxWidth: width,
|
||||
tag: imgTag
|
||||
});
|
||||
}
|
||||
|
||||
return {
|
||||
imgUrl: imgUrl,
|
||||
|
||||
Reference in New Issue
Block a user