mirror of
https://github.com/zadam/trilium.git
synced 2025-11-09 14:55:50 +01:00
chore(client): fix typecheck issues
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user