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);
|
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'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user