From 6b4da33729304db0cf6af222e4a9b93666a12003 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sun, 22 Feb 2026 11:35:46 +0200 Subject: [PATCH] chore(launch_bar): log warnings instead of crashing on a bad launcher --- apps/client/src/widgets/launch_bar/LauncherContainer.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/client/src/widgets/launch_bar/LauncherContainer.tsx b/apps/client/src/widgets/launch_bar/LauncherContainer.tsx index 1319b4eb54..79de559c98 100644 --- a/apps/client/src/widgets/launch_bar/LauncherContainer.tsx +++ b/apps/client/src/widgets/launch_bar/LauncherContainer.tsx @@ -67,7 +67,7 @@ function Launcher({ note, isHorizontalLayout }: { note: FNote, isHorizontalLayou case "builtinWidget": return initBuiltinWidget(note, isHorizontalLayout); default: - throw new Error(`Unrecognized launcher type '${launcherType}' for launcher '${note.noteId}' title '${note.title}'`); + console.warn(`Unrecognized launcher type '${launcherType}' for launcher '${note.noteId}' title '${note.title}'`); } } @@ -99,7 +99,7 @@ function initBuiltinWidget(note: FNote, isHorizontalLayout: boolean) { case "mobileTabSwitcher": return ; default: - throw new Error(`Unrecognized builtin widget ${builtinWidget} for launcher ${note.noteId} "${note.title}"`); + console.warn(`Unrecognized builtin widget ${builtinWidget} for launcher ${note.noteId} "${note.title}"`); } }