fix: remove dead histogram(null) call crashing distance tab

The subagent left a stray histogram(null, 0, ...) call that fell through
to the legacy path which does Math.min(...null) → Symbol.iterator error.
This commit is contained in:
you
2026-03-21 17:41:24 +00:00
parent 7d46d96563
commit fd57790d36
2 changed files with 2 additions and 4 deletions
-2
View File
@@ -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 += `<div class="analytics-section"><h3>Hop Distance Distribution</h3>${barChart(buckets, labels, '#22c55e')}</div>`;
+2 -2
View File
@@ -88,11 +88,11 @@
<script src="channels.js?v=1774075538" onerror="console.error('Failed to load:', this.src)"></script>
<script src="nodes.js?v=1774354200" onerror="console.error('Failed to load:', this.src)"></script>
<script src="traces.js?v=1774350000" onerror="console.error('Failed to load:', this.src)"></script>
<script src="analytics.js?v=1774400000" onerror="console.error('Failed to load:', this.src)"></script>
<script src="analytics.js?v=1774400100" onerror="console.error('Failed to load:', this.src)"></script>
<script src="live.js?v=1774072222" onerror="console.error('Failed to load:', this.src)"></script>
<script src="observers.js?v=1774290000" onerror="console.error('Failed to load:', this.src)"></script>
<script src="observer-detail.js?v=1774028201" onerror="console.error('Failed to load:', this.src)"></script>
<script src="node-analytics.js?v=1774042199" onerror="console.error('Failed to load:', this.src)"></script>
<script src="node-analytics.js?v=1774400100" onerror="console.error('Failed to load:', this.src)"></script>
<script src="perf.js?v=1773985649" onerror="console.error('Failed to load:', this.src)"></script>
</body>
</html>