diff --git a/apps/client/src/services/keyboard_actions.ts b/apps/client/src/services/keyboard_actions.ts index 1ada409ec..5678d6196 100644 --- a/apps/client/src/services/keyboard_actions.ts +++ b/apps/client/src/services/keyboard_actions.ts @@ -29,7 +29,7 @@ async function getActionsForScope(scope: string) { } async function setupActionsForElement(scope: string, $el: JQuery, component: Component) { - if (!$el[0]) return; + if (!$el[0]) return []; const actions = await getActionsForScope(scope); const bindings: ShortcutBinding[] = [];