chore(client): fix typecheck issues

This commit is contained in:
Elian Doran
2025-07-30 23:46:43 +03:00
parent 29b813fa3b
commit 8a587d4d21
8 changed files with 79 additions and 11 deletions

View File

@@ -1552,7 +1552,7 @@ export default class NoteTreeWidget extends NoteContextAwareWidget {
const hotKeyMap: Record<string, (node: Fancytree.FancytreeNode, e: JQuery.KeyDownEvent) => boolean> = {};
for (const action of actions) {
for (const shortcut of action.effectiveShortcuts) {
for (const shortcut of action.effectiveShortcuts ?? []) {
hotKeyMap[shortcutService.normalizeShortcut(shortcut)] = (node) => {
const notePath = treeService.getNotePath(node);