1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-04 10:02:40 +01:00

Fix find error on movie details

This commit is contained in:
nitsua 2020-09-28 00:50:37 -04:00 committed by ta264
parent d5ec2914e2
commit 6bdd24e62d

View File

@ -49,7 +49,7 @@ const defaultFontSize = parseInt(fonts.defaultFontSize);
const lineHeight = parseFloat(fonts.lineHeight); const lineHeight = parseFloat(fonts.lineHeight);
function getFanartUrl(images) { function getFanartUrl(images) {
const fanartImage = images.find({ coverType: 'fanart' }); const fanartImage = images.find((i) => i.coverType === 'fanart');
if (fanartImage) { if (fanartImage) {
// Remove protocol // Remove protocol
return fanartImage.url.replace(/^https?:/, ''); return fanartImage.url.replace(/^https?:/, '');