Previous fix didn't work.

Actually fixes OwlBoard/backend#9 this time.
This commit is contained in:
Fred Boniface 2023-04-04 18:49:24 +01:00
parent 4fb0b34fcc
commit be31d7d854
1 changed files with 4 additions and 2 deletions

View File

@ -140,9 +140,11 @@ async function displayService(svc) {
table.insertAdjacentHTML("beforeend", row) table.insertAdjacentHTML("beforeend", row)
// Display Operator // Display Operator
if (svc.operator) { if (svc.operator) {
var opRow = `<p class="msg op">A ${svc.operator} service</p>` var opRow = `<p class="msg op">A ${svc.operator} service`
if (svc.length) { if (svc.length) {
opRow += `, with ${svc.length} carriages`; opRow += ` with ${svc.length} carriages</p>`;
} else {
opRow += `</p>`
} }
table.insertAdjacentHTML("beforeend", opRow); table.insertAdjacentHTML("beforeend", opRow);
} }