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:
parent
a224a87fc7
commit
a6732443f3
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue