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:
parent
5b326b4322
commit
03c5c81bf3
1 changed files with 2 additions and 2 deletions
|
@ -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, {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue