mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 18:36:30 +01:00 
			
		
		
		
	fix clipper, closes #752
This commit is contained in:
		| @@ -931,6 +931,7 @@ class Note extends Entity { | |||||||
|  |  | ||||||
|         delete pojo.isContentAvailable; |         delete pojo.isContentAvailable; | ||||||
|         delete pojo.__attributeCache; |         delete pojo.__attributeCache; | ||||||
|  |         delete pojo.__ownedAttributeCache; | ||||||
|         delete pojo.content; |         delete pojo.content; | ||||||
|         /** zero references to contentHash, probably can be removed */ |         /** zero references to contentHash, probably can be removed */ | ||||||
|         delete pojo.contentHash; |         delete pojo.contentHash; | ||||||
|   | |||||||
| @@ -34,7 +34,8 @@ async function addClipping(req) { | |||||||
|         clippingNote = (await noteService.createNewNote({ |         clippingNote = (await noteService.createNewNote({ | ||||||
|             parentNoteId: todayNote.noteId, |             parentNoteId: todayNote.noteId, | ||||||
|             title: title, |             title: title, | ||||||
|             content: '' |             content: '', | ||||||
|  |             type: 'text' | ||||||
|         })).note; |         })).note; | ||||||
|  |  | ||||||
|         await clippingNote.setLabel('clipType', 'clippings'); |         await clippingNote.setLabel('clipType', 'clippings'); | ||||||
| @@ -58,7 +59,8 @@ async function createNote(req) { | |||||||
|     const {note} = await noteService.createNewNote({ |     const {note} = await noteService.createNewNote({ | ||||||
|         parentNoteId: todayNote.noteId, |         parentNoteId: todayNote.noteId, | ||||||
|         title, |         title, | ||||||
|         content |         content, | ||||||
|  |         type: 'text' | ||||||
|     }); |     }); | ||||||
|  |  | ||||||
|     await note.setLabel('clipType', clipType); |     await note.setLabel('clipType', clipType); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user