Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

core: fix shortcut not removed

ammarahm-ed79d492e186b9
diff --git a/packages/core/collections/shortcuts.js b/packages/core/collections/shortcuts.js
index c822b67f1..84edea0ef 100644
--- a/packages/core/collections/shortcuts.js
+++ b/packages/core/collections/shortcuts.js
@@ -141,7 +141,7 @@ export default class Shortcuts extends Collection {
async remove(...shortcutIds) {
const shortcuts = this.all.filter((shortcut) =>
shortcutIds.includes(
- shortcut.item.id0 || shortcutIds.includes(shortcut.id)
+ shortcut.item.id || shortcutIds.includes(shortcut.id)
)
);
for (const { id } of shortcuts) {