Skip to content

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

fix: filter out deleted notes when getting tag notes

thecodrr2a9f57bacf2f
diff --git a/packages/core/collections/notes.js b/packages/core/collections/notes.js
index 0d7ebb44b..6ac49290b 100644
--- a/packages/core/collections/notes.js
+++ b/packages/core/collections/notes.js
@@ -174,8 +174,8 @@ export default class Notes extends Collection {
const tag = this._db[collection].tag(tagId);
if (!tag || tag.noteIds.length <= 0) return [];
const array = tag.noteIds.reduce((arr, id) => {
- const item = this._collection.getItem(id);
- if (item) arr.push(item);
+ const item = this.note(id);
+ if (item) arr.push(item.data);
return arr;
}, []);
return sort(array).desc((note) => note.dateCreated);