Skip to content

Commit

Permalink
Update widget.js (#1686)
Browse files Browse the repository at this point in the history
  • Loading branch information
mccahan authored Oct 10, 2024
1 parent c0bee7c commit dab9380
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/Resources/queries/widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -334,16 +334,18 @@
const $li = $('<li />').addClass(csscls('table-list-item'));
const $muted = $('<span />').addClass(css('text-muted'));

for (const i in values.values()) {
let i = 0;
for (const value of values) {
if (showLineNumbers) {
$ul.append($li.clone().append([$muted.clone().text(`${i}:`), '&nbsp;', $('<span/>').text(values[i])]));
$ul.append($li.clone().append([$muted.clone().text(`${i}:`), '&nbsp;', $('<span/>').text(value)]));
} else {
if (caption === 'Hints') {
$ul.append($li.clone().append(values[i]));
$ul.append($li.clone().append(value));
} else {
$ul.append($li.clone().text(values[i]));
$ul.append($li.clone().text(value));
}
}
i++;
}

return this.renderDetail(caption, icon, $ul);
Expand Down

0 comments on commit dab9380

Please sign in to comment.