Skip to content
Snippets Groups Projects
Commit 25311022 authored by AA2875's avatar AA2875
Browse files

Ei lisää tyhjää li:tä

parent 62521c91
No related branches found
No related tags found
No related merge requests found
......@@ -84,10 +84,12 @@ function jumpItemFullInfo(jump) {
ul.setAttributeNode(ulStyle)
specs.forEach(spec => {
let li = document.createElement('li')
let jumpSpec = document.createTextNode(spec)
li.appendChild(jumpSpec)
ul.appendChild(li)
if (spec != '') {
let li = document.createElement('li')
let jumpSpec = document.createTextNode(spec)
li.appendChild(jumpSpec)
ul.appendChild(li)
}
});
ul.appendChild(createDeleteButton(jump))
return ul
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment