From fd57790d36ae758f465d0ab8c1cfca79d0705d05 Mon Sep 17 00:00:00 2001 From: you Date: Sat, 21 Mar 2026 17:41:24 +0000 Subject: [PATCH] fix: remove dead histogram(null) call crashing distance tab MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The subagent left a stray histogram(null, 0, ...) call that fell through to the legacy path which does Math.min(...null) → Symbol.iterator error. --- public/analytics.js | 2 -- public/index.html | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/public/analytics.js b/public/analytics.js index ebd5a081..1d32335e 100644 --- a/public/analytics.js +++ b/public/analytics.js @@ -1338,8 +1338,6 @@ // Histogram if (data.distHistogram && data.distHistogram.bins) { - const h = histogram(null, 0, '#22c55e'); - // Use pre-computed histogram const buckets = data.distHistogram.bins.map(b => b.count); const labels = data.distHistogram.bins.map(b => b.x.toFixed(1)); html += `

Hop Distance Distribution

${barChart(buckets, labels, '#22c55e')}
`; diff --git a/public/index.html b/public/index.html index 52cc8a69..f57c63a5 100644 --- a/public/index.html +++ b/public/index.html @@ -88,11 +88,11 @@ - + - +