Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix clipperInbox handling for new note creation, closes #4219
zadam2b4cbb5f6b6c
diff --git a/src/routes/api/clipper.js b/src/routes/api/clipper.jsindex fabf9e0129..a1eaba3b46 100644--- a/src/routes/api/clipper.js+++ b/src/routes/api/clipper.js@@ -94,13 +94,12 @@ function createNote(req) {clipType = htmlSanitizer.sanitize(clipType);const clipperInbox = getClipperInboxNote();- const dailyNote = dateNoteService.getDayNote(dateUtils.localNowDate());pageUrl = htmlSanitizer.sanitizeUrl(pageUrl);let note = findClippingNote(clipperInbox, pageUrl, clipType);if (!note) {note = noteService.createNewNote({- parentNoteId: dailyNote.noteId,+ parentNoteId: clipperInbox.noteId,title,content: '',type: 'text'