mirror of
https://github.com/zadam/trilium.git
synced 2025-10-28 16:56:34 +01:00
minor relation map fixes
This commit is contained in:
@@ -68,6 +68,10 @@ async function createNewNote(parentNoteId, noteData) {
|
||||
noteData.type = noteData.type || parentNote.type;
|
||||
noteData.mime = noteData.mime || parentNote.mime;
|
||||
|
||||
if (noteData.type === 'text' || noteData.type === 'code') {
|
||||
noteData.content = noteData.content || "";
|
||||
}
|
||||
|
||||
const note = await new Note({
|
||||
noteId: noteData.noteId, // optionally can force specific noteId
|
||||
title: noteData.title,
|
||||
|
||||
Reference in New Issue
Block a user