mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
fix clipperInbox handling for new note creation, closes #4219
This commit is contained in:
parent
7b662b04ff
commit
2b4cbb5f6b
@ -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'
|
||||
|
Loading…
x
Reference in New Issue
Block a user