fix(dashboard): resolve Fresnel tooltip MAC address lookup bug

The showFresnelTooltip function referenced data.txMAC/data.rxMAC which
don't exist on the ellipsoid geometry data object. Use link.nodeMAC and
link.peerMAC from the link state instead, which are always available.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
jedarden 2026-04-25 00:57:06 -04:00
parent 8f8f2ccc74
commit 2bd1f9096b

View file

@ -2531,10 +2531,12 @@
if (healthData) healthScore = healthData.score;
}
var txNode = state.nodes.get(data.txMAC);
var rxNode = state.nodes.get(data.rxMAC);
var txLabel = txNode ? (txNode.name || txNode.mac) : data.txMAC;
var rxLabel = rxNode ? (rxNode.name || rxNode.mac) : data.rxMAC;
var txMAC = link.nodeMAC;
var rxMAC = link.peerMAC;
var txNode = state.nodes.get(txMAC);
var rxNode = state.nodes.get(rxMAC);
var txLabel = txNode ? (txNode.name || txNode.mac) : txMAC;
var rxLabel = rxNode ? (rxNode.name || rxNode.mac) : rxMAC;
tooltip.innerHTML =
'<strong>Link:</strong> ' + txLabel + ' to ' + rxLabel + '<br>' +