Apply suggestions from code review

Co-authored-by: Dmitry Lyzo <56478732+dmitrylyzo@users.noreply.github.com>
This commit is contained in:
Cameron 2020-08-08 23:23:53 +01:00 committed by GitHub
parent 9911a43478
commit cfb22c0fb9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 += '<div class="verticalSection">';
html += '<h2 class="sectionTitle sectionTitle-cards padded-left">' + group.name + '</h2>';