Skip to content

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

fix: restoring unknown type item caused notebook restore condition to be true

thecodrr8fa904067cbd
diff --git a/packages/core/collections/trash.js b/packages/core/collections/trash.js
index 023a37ca9..188ab8001 100644
--- a/packages/core/collections/trash.js
+++ b/packages/core/collections/trash.js
@@ -91,7 +91,7 @@ export default class Trash {
.add(item.id);
}
}
- } else {
+ } else if (item.type === "notebook") {
const { topics } = item;
item.topics = [];
await this._notebooks.add(item);