Skip to content

Commit 4e8b7d3

Browse files
committed
fix: skip unknown actions in keyboard shortcuts help
1 parent ee37226 commit 4e8b7d3

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

apps/web/src/hooks/use-keyboard-shortcuts-help.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ export function useKeyboardShortcutsHelp() {
5757
[TActionWithOptionalArgs, string[]]
5858
>) {
5959
const actionDef = ACTIONS[action];
60+
if (!actionDef) {
61+
continue;
62+
}
6063
result.push({
6164
id: action,
6265
keys,

0 commit comments

Comments
 (0)