Skip to content

Commit

Permalink
Fix: cannot remove shortcuts (merge setups instead of chain setups)
Browse files Browse the repository at this point in the history
  • Loading branch information
twitwi committed Oct 30, 2024
1 parent 3be1191 commit 5a1e533
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/client/setup/shortcuts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 5a1e533

Please sign in to comment.