mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-04 04:16:17 +01:00 
			
		
		
		
	fix clipperInbox handling for new note creation, closes #4219
This commit is contained in:
		@@ -94,13 +94,12 @@ function createNote(req) {
 | 
				
			|||||||
    clipType = htmlSanitizer.sanitize(clipType);
 | 
					    clipType = htmlSanitizer.sanitize(clipType);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    const clipperInbox = getClipperInboxNote();
 | 
					    const clipperInbox = getClipperInboxNote();
 | 
				
			||||||
    const dailyNote = dateNoteService.getDayNote(dateUtils.localNowDate());
 | 
					 | 
				
			||||||
    pageUrl = htmlSanitizer.sanitizeUrl(pageUrl);
 | 
					    pageUrl = htmlSanitizer.sanitizeUrl(pageUrl);
 | 
				
			||||||
    let note = findClippingNote(clipperInbox, pageUrl, clipType);
 | 
					    let note = findClippingNote(clipperInbox, pageUrl, clipType);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (!note) {
 | 
					    if (!note) {
 | 
				
			||||||
        note = noteService.createNewNote({
 | 
					        note = noteService.createNewNote({
 | 
				
			||||||
            parentNoteId: dailyNote.noteId,
 | 
					            parentNoteId: clipperInbox.noteId,
 | 
				
			||||||
            title,
 | 
					            title,
 | 
				
			||||||
            content: '',
 | 
					            content: '',
 | 
				
			||||||
            type: 'text'
 | 
					            type: 'text'
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user