From ec829929f09304614e2c016e0ee3d636952298e2 Mon Sep 17 00:00:00 2001 From: mango Date: Sun, 22 Feb 2026 21:59:20 +0800 Subject: [PATCH] fix: provider filter from all nodes instead of current page --- public/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/index.html b/public/index.html index 89ee050..e86d086 100644 --- a/public/index.html +++ b/public/index.html @@ -180,7 +180,7 @@ async function loadLogs(page){ function renderLogs(){ const reqs=DATA.requests||[]; const nodes=(DATA.nodes||[]).map(n=>n.name).sort(); - const ups=[...new Set(reqs.map(r=>r.upstream))].sort(); + const ups=[...new Set((DATA.nodes||[]).flatMap(n=>JSON.parse(n.providers||'[]').map(p=>p.name)))].sort(); const fN=$('#fNode'),fU=$('#fUp'); const nv=fN.value,uv=fU.value; fN.innerHTML=''+nodes.map(n=>`${n}`).join('');