From ccb90ed16f47e56d530bb3f89807d6326fec7a49 Mon Sep 17 00:00:00 2001 From: d00f Date: Wed, 5 Aug 2026 21:42:54 +0200 Subject: [PATCH] l2: refresh the type column when a row is reused The paint loop reuses existing rows and rewrites port, MAC, VLAN and the delete button, but never the type cell - only the insert path set it. With a fixed row order that stayed invisible, since a row usually landed back where it was. Sorting moves rows, so every other column followed the data while type kept the previous row's value, which made sorting by type look broken when the sort itself was correct. --- html/l2.js | 1 + 1 file changed, 1 insertion(+) diff --git a/html/l2.js b/html/l2.js index 20125dc..21bd91c 100644 --- a/html/l2.js +++ b/html/l2.js @@ -131,6 +131,7 @@ function paintL2(tbl, s) tbl.rows[i+1].cells[0].innerHTML = `${e.port}`; tbl.rows[i+1].cells[1].innerHTML = `${e.mac}`; tbl.rows[i+1].cells[2].innerHTML = `${e.vlan}`; + tbl.rows[i+1].cells[3].innerHTML = `${e.type}`; tbl.rows[i+1].cells[4].innerHTML = ''; } else { const tr = tbl.insertRow();