From e73298d9bc2c2a1e46a78a2cc88e9c0484d60f0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Gruszczy=C5=84ski?= Date: Sat, 18 Oct 2025 23:05:03 +0200 Subject: [PATCH] refator_comm1 --- static/js/admin.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/static/js/admin.js b/static/js/admin.js index ed56432..25660e3 100644 --- a/static/js/admin.js +++ b/static/js/admin.js @@ -148,7 +148,7 @@ export async function startAdminWatches() { status: safe(vm.status || '—') })); - const html = rows.map(r => rowHTML([ + const htmlRows = rows.map(r => rowHTML([ ``, safe(r.sid), safe(r.name), @@ -160,9 +160,9 @@ export async function startAdminWatches() { ` - ])).join(''); + ])); - setRows(tbody, html); + setRows(tbody, htmlRows); // wire node selects and actions Array.from(tbody.querySelectorAll('tr[data-sid]')).forEach(tr => {