Skip to content

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

core: do not preserve pin state when duplicating notes

kashaf-ansari-dev3aa23d321541
diff --git a/packages/core/src/collections/notes.ts b/packages/core/src/collections/notes.ts
index f56f6c645..d0b5f4570 100644
--- a/packages/core/src/collections/notes.ts
+++ b/packages/core/src/collections/notes.ts
@@ -434,6 +434,7 @@ export class Notes implements ICollection {
const duplicateId = await this.db.notes.add({
...clone(note),
id: undefined,
+ pinned: false,
isGeneratedTitle: false,
contentId: undefined,
title: note.title + " (Copy)",