Skip to content

Commit

Permalink
fix clipperInbox handling for new note creation, closes #4219
Browse files Browse the repository at this point in the history
  • Loading branch information
zadam committed Sep 5, 2023
1 parent 7b662b0 commit 2b4cbb5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/routes/api/clipper.js
Expand Up @@ -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'
Expand Down

0 comments on commit 2b4cbb5

Please sign in to comment.