Skip to content

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

fix: search bailout when note is not fully synced

thecodrr8ce71917a31f
diff --git a/packages/core/api/lookup.js b/packages/core/api/lookup.js
index fa8405156..d21ef2862 100644
--- a/packages/core/api/lookup.js
+++ b/packages/core/api/lookup.js
@@ -16,11 +16,7 @@ export default class Lookup {
return search(notes, query, (note) => {
let text = note.title;
- if (
- !note.locked &&
- !!note.contentId &&
- Object.prototype.hasOwnProperty.call(contents, note.contentId)
- )
+ if (!note.locked && !!note.contentId && !!contents[note.contentId])
text += contents[note.contentId]["data"];
return text;
});