mirror of
https://github.com/zadam/trilium.git
synced 2025-12-07 16:04:23 +01:00
fix(note_create): warn message
This commit is contained in:
parent
b29ec6da81
commit
61282ef5c8
@ -176,7 +176,7 @@ async function createNoteFromAction(
|
||||
}
|
||||
case CreateNoteAction.CreateChildNote: {
|
||||
if (!parentNoteLink) {
|
||||
console.warn("Missing parentNoteLink in createNoteFromCkEditor()");
|
||||
console.warn("createNoteFromAction: Missing parentNoteLink");
|
||||
return { note: null, branch: undefined };
|
||||
}
|
||||
|
||||
@ -193,7 +193,7 @@ async function createNoteFromAction(
|
||||
}
|
||||
case CreateNoteAction.CreateAndLinkChildNote: {
|
||||
if (!parentNoteLink) {
|
||||
console.warn("Missing parentNoteLink in createNoteFromCkEditor()");
|
||||
console.warn("createNoteFromAction: Missing parentNoteLink");
|
||||
return { note: null, branch: undefined };
|
||||
}
|
||||
const resp = await createNote(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user