From cfb22c0fb91e58c75ec26d21db45e35b33a619d3 Mon Sep 17 00:00:00 2001 From: Cameron Date: Sat, 8 Aug 2020 23:23:53 +0100 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Dmitry Lyzo <56478732+dmitrylyzo@users.noreply.github.com> --- src/scripts/livetvcomponents.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 + '

';