Try fix type error

This commit is contained in:
Fred Boniface 2023-04-24 13:11:13 +01:00
parent cd3a4dad33
commit b17894f7f1

View File

@ -42,7 +42,9 @@ async function insertData(json) {
} }
tableData += "</table>" tableData += "</table>"
div.insertAdjacentHTML("beforeend", tableData) div.insertAdjacentHTML("beforeend", tableData)
document.getElementById('result-count').textContent = results if (results > 1) {
document.getElementById('result-count').textContent = results.toString()
}
} }
async function noData() { async function noData() {