From 4d50af516b5c49f23df58b3239bfe1085181d6cb Mon Sep 17 00:00:00 2001 From: Christian Fehmer Date: Mon, 22 Dec 2025 15:26:37 +0100 Subject: [PATCH] cleanup subgroupByConfigKey --- frontend/src/ts/commandline/lists.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/ts/commandline/lists.ts b/frontend/src/ts/commandline/lists.ts index fed08e8f3..1461c59f1 100644 --- a/frontend/src/ts/commandline/lists.ts +++ b/frontend/src/ts/commandline/lists.ts @@ -378,9 +378,9 @@ const lists = { const subGroupByConfigKey = Object.fromEntries( commands.list - .filter((it) => it.id.startsWith("change")) - .map((it) => [it.id.slice("change".length).toLowerCase(), it.subgroup]), -); + .filter((it) => it.subgroup?.configKey !== undefined) + .map((it) => [it.subgroup?.configKey, it.subgroup]), +) as Record; export function doesListExist(listName: string): boolean { if (subGroupByConfigKey[listName] !== undefined) {