mirror of
https://github.com/Kpa-clawbot/meshcore-analyzer.git
synced 2026-09-27 00:28:00 +00:00
NodesMatchingArea had omitempty, so a genuine 0 count (the meaningful case this feature exists to surface -- "linked region, zero adoption") dropped out of the JSON entirely. The frontend read undefined off the missing key and called .toLocaleString() on it, throwing and blanking Region Utilization/Repeaters by Region/Bridge Repeaters along with it since they render later in the same updateData pass. Drop omitempty, add a defensive `|| 0` on the client, and a regression test that decodes into a raw map (not the typed struct, which hides this by zero-valuing the field regardless of whether the key was present). Caught live on stg immediately after deploying the feature -- verified via browser before/after, not just the unit test. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>