From db081b6b041efd570f215b7e30fa53b1e4ec534b Mon Sep 17 00:00:00 2001 From: cclohmar Date: Wed, 29 Jul 2026 09:37:16 +0000 Subject: [PATCH] fix: null-safe input lookup in confirmEditForm --- web/app.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/app.js b/web/app.js index bf689bc..ef27c76 100644 --- a/web/app.js +++ b/web/app.js @@ -204,7 +204,9 @@ function hideEditForm(cell) { function confirmEditForm(cell) { var mac = cell.dataset.mac; var ip = cell.dataset.ip; - var hostname = cell.querySelector('.edit-hostname').value.trim(); + var input = cell.querySelector('.edit-hostname'); + if (!input) return; + var hostname = input.value.trim(); hideEditForm(cell); updateHostname(mac, ip, hostname); }