Skip to content

Commit f1b7e52

Browse files
committed
Correct HTML syntax
1 parent ddcfe08 commit f1b7e52

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Studies/resources/views/studiesOverview.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,15 @@
4343
});
4444

4545
dataByCategory[row['CategoryId/Label']] = dataByCategory[row['CategoryId/Label']] || []
46-
dataByCategory[row['CategoryId/Label']].push(`<li><a href="${dsUrl}">${row.Label}</a></li>`)
46+
dataByCategory[row['CategoryId/Label']].push($(`<li><a href="${dsUrl}">${row.Label}</a></li>`))
4747
})
4848

4949
Object.keys(dataByCategory).sort().forEach(category => {
5050
div.append('<h4 style="font-weight: bold;">' + category + '</h4>').append('<ul>')
51+
const ul = div.children('ul')[0]
5152
dataByCategory[category].forEach(item => {
52-
div.append(item)
53+
ul.append(item[0])
5354
})
54-
div.append('</ul>')
5555
})
5656

5757
$('#' + webpart.wrapperDivId).append(div)

0 commit comments

Comments
 (0)