Skip to content

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

fix: getFavorites should get both notes and notebooks

thecodrr0f97f89ab0c5
diff --git a/packages/core/api/database.js b/packages/core/api/database.js
index edb60d190..4b9683808 100644
--- a/packages/core/api/database.js
+++ b/packages/core/api/database.js
@@ -56,7 +56,10 @@ class Database {
}
getFavorites() {
- return tfun.filter(".favorite == true")(this.getNotes());
+ return tfun.filter(".favorite == true")([
+ ...this.getNotes(),
+ ...this.getNotebooks()
+ ]);
}
getPinned() {