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

Fix issue where shows without icons would use the last icon that was displayed

This was due to JS hoisting our var declaration, so I also made this
hoist more clear/explicit.
This commit is contained in:
Jimmy Reichley 2015-12-30 14:31:32 -05:00
parent 5b326b4322
commit 03c5c81bf3

View file

@ -6,8 +6,8 @@
require(['paper-fab', 'paper-item-body', 'paper-icon-item'], function () {
var html = '';
var index = '';
var imgUrl;
for (var i = 0, length = timers.length; i < length; i++) {
@ -31,8 +31,8 @@
html += '<paper-icon-item>';
var program = timer.ProgramInfo || {};
var imgUrl;
imgUrl = null;
if (program.ImageTags && program.ImageTags.Primary) {
imgUrl = ApiClient.getScaledImageUrl(program.Id, {