fix clipperInbox handling for new note creation, closes #4219

This commit is contained in:
zadam 2023-09-05 23:24:01 +02:00
parent 7b662b04ff
commit 2b4cbb5f6b

View File

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