fix clipper, closes #752

This commit is contained in:
zadam 2019-12-08 09:41:31 +01:00
parent 156f040880
commit 7ed526beb7
2 changed files with 5 additions and 2 deletions

View file

@ -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;

View file

@ -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);