From 072496fb4352fb02e4eb479bb46580f9b2f4f754 Mon Sep 17 00:00:00 2001 From: you Date: Thu, 19 Mar 2026 22:44:00 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20nodes=20tab=20=E2=80=94=20unwrap=20{node?= =?UTF-8?q?s}=20from=20API=20response?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/analytics.js | 3 ++- public/index.html | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/public/analytics.js b/public/analytics.js index 7931a300..ed9ec5e1 100644 --- a/public/analytics.js +++ b/public/analytics.js @@ -1141,7 +1141,8 @@ async function renderNodesTab(el) { el.innerHTML = '
Loading node analytics…
'; try { - const nodes = await api('/nodes?limit=200&sortBy=lastSeen'); + const nodesResp = await api('/nodes?limit=200&sortBy=lastSeen'); + const nodes = nodesResp.nodes || nodesResp; const myNodes = JSON.parse(localStorage.getItem('meshcore-my-nodes') || '[]'); const myKeys = new Set(myNodes.map(n => n.pubkey)); diff --git a/public/index.html b/public/index.html index 62bd3688..bc650e6d 100644 --- a/public/index.html +++ b/public/index.html @@ -83,9 +83,9 @@ - + - +