ui: fix undefined location filter variable on the Machines page
CI / agent (push) Successful in 3s
CI / site (push) Successful in 2s
CI / go (push) Successful in 27s

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
Ilker ManapandClaude Fable 5.1 committed 2026-10-27 19:18:55 +01:00
1 parent cb7b6fd19e
commit 727d50177d
1 file changed
+1
+1
View File
@@ -172,6 +172,7 @@ function stateCell(m) {
}
function pageMachines() {
const r = route(); if (r.arg && !S.states.size) S.states.add(r.arg);
const L = S.loc;
const ms = filtered();
const by = {}; for (const m of S.machines) by[m.state] = (by[m.state] || 0) + 1;
const tagCount = {}; for (const m of S.machines) for (const t of m.tags || []) tagCount[t] = (tagCount[t] || 0) + 1;