From c90cf9eb4331dbeb7f36efbfac99fc3c10d78a44 Mon Sep 17 00:00:00 2001 From: Donkie Date: Sun, 19 Jul 2026 10:18:35 +0200 Subject: [PATCH] client_v2: fix crash inspecting a spool of a colorless filament MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A filament with neither color_hex nor multi_color_hexes maps to an empty colors array, and the spool inspector's color-hex row indexed [0] unconditionally, throwing on render. Show the usual "—" placeholder instead. Claude-Session: https://claude.ai/code/session_014Cwk5Yyze9yPvkYkUtMAP4 --- client_v2/src/lib/components/library/SpoolInspector.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client_v2/src/lib/components/library/SpoolInspector.svelte b/client_v2/src/lib/components/library/SpoolInspector.svelte index 17ee5735..a119115a 100644 --- a/client_v2/src/lib/components/library/SpoolInspector.svelte +++ b/client_v2/src/lib/components/library/SpoolInspector.svelte @@ -332,7 +332,7 @@ {filament.colors.length > 1 ? m['inspector.multi']({ count: filament.colors.length }) - : filament.colors[0].toUpperCase()}