From 2b4cbb5f6b6c75df29e6ba95c9d0df87feb864b4 Mon Sep 17 00:00:00 2001 From: zadam Date: Tue, 5 Sep 2023 23:24:01 +0200 Subject: [PATCH] fix clipperInbox handling for new note creation, closes #4219 --- src/routes/api/clipper.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/routes/api/clipper.js b/src/routes/api/clipper.js index fabf9e012..a1eaba3b4 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'