Skip to content

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

core: this.find > this.shortcut

ammarahm-ed56f26f3c95cf
diff --git a/packages/core/collections/shortcuts.js b/packages/core/collections/shortcuts.js
index ea9648011..c822b67f1 100644
--- a/packages/core/collections/shortcuts.js
+++ b/packages/core/collections/shortcuts.js
@@ -59,7 +59,7 @@ export default class Shortcuts extends Collection {
throw new Error("Cannot create a shortcut for this type of item.");
let oldShortcut = shortcut.item
- ? this.find(shortcut.item.id)
+ ? this.shortcut(shortcut.item.id)
: shortcut.id
? this._collection.getItem(shortcut.id)
: null;