1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Only push image url to array if non-null

This commit is contained in:
MrTimscampi 2020-04-16 17:00:26 +02:00
parent a224a87fc7
commit a6732443f3

View file

@ -67,7 +67,10 @@ import connectionManager from 'connectionManager';
const list = [];
imageSizes.forEach((size) => {
list.push(getImageUrl(item, {height: size}));
const url = getImageUrl(item, {height: size});
if (url !== null) {
list.push(url);
}
});
return list;