From 8efdff420ac9adbb5b7666f633e11ad4512a285b Mon Sep 17 00:00:00 2001 From: you Date: Tue, 24 Mar 2026 14:26:47 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20packet=20row=20expand=20crash=20?= =?UTF-8?q?=E2=80=94=20'child'=20not=20defined,=20should=20be=20'c'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit renderPath(childPath, child.observer_id) referenced undefined variable 'child' instead of loop variable 'c'. Crashed the entire render loop when expanding a grouped packet row. --- public/index.html | 50 +++++++++++++++++++++++------------------------ public/packets.js | 2 +- 2 files changed, 26 insertions(+), 26 deletions(-) diff --git a/public/index.html b/public/index.html index d4699466..c8682e78 100644 --- a/public/index.html +++ b/public/index.html @@ -22,9 +22,9 @@ - - - + + + @@ -81,27 +81,27 @@
- - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + diff --git a/public/packets.js b/public/packets.js index 448fed6e..bace61e1 100644 --- a/public/packets.js +++ b/public/packets.js @@ -1036,7 +1036,7 @@ const childRegion = c.observer_id ? (observers.find(o => o.id === c.observer_id)?.iata || '') : ''; let childPath = []; try { childPath = JSON.parse(c.path_json || '[]'); } catch {} - const childPathStr = renderPath(childPath, child.observer_id); + const childPathStr = renderPath(childPath, c.observer_id); html += ` ${childRegion ? `${childRegion}` : '—'} ${timeAgo(c.timestamp)}