From 5a1e533f49b501cfa1faf4abd2999453407fe67c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Emonet?= Date: Wed, 30 Oct 2024 15:42:51 +0100 Subject: [PATCH] Fix: cannot remove shortcuts (merge setups instead of chain setups) --- packages/client/setup/shortcuts.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/client/setup/shortcuts.ts b/packages/client/setup/shortcuts.ts index 9d42510d68..32fbd43e6a 100644 --- a/packages/client/setup/shortcuts.ts +++ b/packages/client/setup/shortcuts.ts @@ -63,8 +63,7 @@ export default function setupShortcuts() { const baseShortcutNames = new Set(shortcuts.map(s => s.name)) for (const setup of setups) { - const result = setup(context, shortcuts) - shortcuts = shortcuts.concat(result) + shortcuts = setup(context, shortcuts) } const remainingBaseShortcutNames = shortcuts.filter(s => s.name && baseShortcutNames.has(s.name))