Fix array.join()

This commit is contained in:
Fred Boniface 2023-04-25 19:30:54 +01:00
parent 2bf95e8134
commit b37cbdb1d0

View File

@ -35,7 +35,7 @@ async function insertData(json) {
let results = 0
for(var i = 0; i < json.length; i++) { // Hopefully can style output with CSS
tableData += `<tr><td class="pis-code">${json[i]['code']}</td>
<td class="station">${json[i]['stops']}</td></tr>`
<td class="station">${json[i]['stops'].join(', ')}</td></tr>`
results++
}
tableData += "</table>"