diff --git a/src/scripts/livetvcomponents.js b/src/scripts/livetvcomponents.js index f1d0b2d3da..46fb714763 100644 --- a/src/scripts/livetvcomponents.js +++ b/src/scripts/livetvcomponents.js @@ -22,7 +22,7 @@ function getTimersHtml(timers, options) { let currentGroupName = ''; let currentGroup = []; - for (const item in items) { + for (const item of items) { let dateText = ''; if (options.indexByDate !== false && item.StartDate) { @@ -60,7 +60,7 @@ function getTimersHtml(timers, options) { }); } let html = ''; - for (const group in groups) { + for (const group of groups) { if (group.name) { html += '
'; html += '

' + group.name + '

';