mirror of
https://github.com/zadam/trilium.git
synced 2025-10-30 09:56:36 +01:00
becca conversion WIP
This commit is contained in:
@@ -275,7 +275,7 @@ function BackendScriptApi(currentNote, apiParams) {
|
||||
extraOptions.parentNoteId = parentNoteId;
|
||||
extraOptions.title = title;
|
||||
|
||||
const parentNote = repository.getNote(parentNoteId);
|
||||
const parentNote = becca.getNote(parentNoteId);
|
||||
|
||||
// code note type can be inherited, otherwise text is default
|
||||
extraOptions.type = parentNote.type === 'code' ? 'code' : 'text';
|
||||
|
||||
Reference in New Issue
Block a user