From c632308dcc08a3820692a14158cd261c7df88223 Mon Sep 17 00:00:00 2001 From: Dewaldt Huysamen Date: Sun, 1 Feb 2026 09:26:47 +0200 Subject: [PATCH] fix: guard multiselect return against cancel (null/undefined) --- src/commands/onboard-memory.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/onboard-memory.ts b/src/commands/onboard-memory.ts index 8b4e101367e..59cf1f58889 100644 --- a/src/commands/onboard-memory.ts +++ b/src/commands/onboard-memory.ts @@ -51,7 +51,7 @@ export async function setupMemoryOptimization( ], }); - const choices = new Set(selected.filter((v) => v !== "__skip__")); + const choices = new Set((selected ?? []).filter((v) => v !== "__skip__")); if (choices.size === 0) { return cfg; }