Skip to content

Build your personal knowledge base with Trilium Notes

fix clipper, closes #752

zadam7ed526beb7fb
diff --git a/src/entities/note.js b/src/entities/note.js
index 1c1903dd4d..20ce506b22 100644
--- a/src/entities/note.js
+++ b/src/entities/note.js
@@ -931,6 +931,7 @@ class Note extends Entity {
delete pojo.isContentAvailable;
delete pojo.__attributeCache;
+ delete pojo.__ownedAttributeCache;
delete pojo.content;
/** zero references to contentHash, probably can be removed */
delete pojo.contentHash;
diff --git a/src/routes/api/clipper.js b/src/routes/api/clipper.js
index 1554941c3a..8659f65612 100644
--- a/src/routes/api/clipper.js
+++ b/src/routes/api/clipper.js
@@ -34,7 +34,8 @@ async function addClipping(req) {
clippingNote = (await noteService.createNewNote({
parentNoteId: todayNote.noteId,
title: title,
- content: ''
+ content: '',
+ type: 'text'
})).note;
await clippingNote.setLabel('clipType', 'clippings');
@@ -58,7 +59,8 @@ async function createNote(req) {
const {note} = await noteService.createNewNote({
parentNoteId: todayNote.noteId,
title,
- content
+ content,
+ type: 'text'
});
await note.setLabel('clipType', clipType);