fix: nodes tab — unwrap {nodes} from API response

This commit is contained in:
you
2026-03-19 22:44:00 +00:00
parent 6dc8f8661d
commit 072496fb43
2 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -1141,7 +1141,8 @@
async function renderNodesTab(el) {
el.innerHTML = '<div style="padding:40px;text-align:center;color:var(--text-muted)">Loading node analytics…</div>';
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));
+2 -2
View File
@@ -83,9 +83,9 @@
<script src="channels.js?v=1774079160" onerror="console.error('Failed to load:', this.src)"></script>
<script src="nodes.js?v=1773959793" onerror="console.error('Failed to load:', this.src)"></script>
<script src="traces.js?v=1774079160" onerror="console.error('Failed to load:', this.src)"></script>
<script src="analytics.js?v=1773960201" onerror="console.error('Failed to load:', this.src)"></script>
<script src="analytics.js?v=1773960240" onerror="console.error('Failed to load:', this.src)"></script>
<script src="live.js?v=1774079160" onerror="console.error('Failed to load:', this.src)"></script>
<script src="observers.js?v=1774079160" onerror="console.error('Failed to load:', this.src)"></script>
<script src="node-analytics.js?v=1773960201" onerror="console.error('Failed to load:', this.src)"></script>
<script src="node-analytics.js?v=1773960240" onerror="console.error('Failed to load:', this.src)"></script>
</body>
</html>