Skip to content

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

fix: note not being deleted from notebook

thecodrr795976c79336
diff --git a/packages/core/api/database.js b/packages/core/api/database.js
index 094868a35..2a8f0cb49 100644
--- a/packages/core/api/database.js
+++ b/packages/core/api/database.js
@@ -407,7 +407,7 @@ async function deleteItems(items, key) {
if (!item) continue;
if (this[key].hasOwnProperty(item.dateCreated)) {
//delete note from the notebook too.
- if (item.type === "note" && item.notebook.topic) {
+ if (item.type === "note") {
if (
!(await this.deleteNoteFromTopic(
item.notebook.notebook,