fixed origin null pointer exception on leases table

This commit is contained in:
Oscar Krause 2023-01-18 08:42:28 +01:00
parent e1259838db
commit 757bae849c
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ async function fetchLeases(element) {
<td>${new Date(o.lease_created).toLocaleDateString('system', dtc)}</td>
<td>${new Date(o.lease_updated).toLocaleDateString('system', dtc)}</td>
<td>${new Date(o.lease_expires).toLocaleDateString('system', dtc)}</td>
<td><code title="hostname: ${o.origin.hostname}">${o.origin_ref}</code></td>`
<td><code title="hostname: ${o.origin?.hostname}">${o.origin_ref}</code></td>`
tbody.appendChild(row);
})
table.appendChild(tbody)