A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
core: deep clone note when duplicating
ammarahm-eda28beb62c66f
diff --git a/packages/core/models/note.js b/packages/core/models/note.jsindex 3148e36d3..c1f79e62a 100644--- a/packages/core/models/note.js+++ b/packages/core/models/note.js@@ -24,6 +24,7 @@ import { getContentFromData } from "../content-types";import { CHECK_IDS, checkIsUserPremium } from "../common";import { addItem, deleteItem } from "../utils/array";import { formatDate } from "../utils/date";+import qclone from "qclone";export default class Note {/**@@ -135,7 +136,7 @@ export default class Note {async duplicate() {const content = await this._db.content.raw(this._note.contentId);return await this._db.notes.add({- ...this._note,+ ...qclone(this._note),id: undefined,content: {type: content.type,