Skip to content

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

core: ignore trash when checking notebook existence

Abdullah Attad8729f8171d3
diff --git a/packages/core/src/collections/notebooks.ts b/packages/core/src/collections/notebooks.ts
index abcc5109b..3c2f6833e 100644
--- a/packages/core/src/collections/notebooks.ts
+++ b/packages/core/src/collections/notebooks.ts
@@ -237,7 +237,7 @@ export class Notebooks implements ICollection {
}
exists(id: string) {
- return this.collection.exists(id);
+ return this.all.has(id);
}
async moveToTrash(...ids: string[]) {