mirror of
https://github.com/zadam/trilium.git
synced 2026-02-18 04:17:04 +01:00
fix(server/notes): images not saved on duplication (fixes #7471)
This commit is contained in:
@@ -239,8 +239,6 @@ function createNewNote(params: NoteParams): {
|
||||
}
|
||||
}
|
||||
|
||||
asyncPostProcessContent(note, params.content);
|
||||
|
||||
if (params.templateNoteId) {
|
||||
const templateNote = becca.getNote(params.templateNoteId);
|
||||
if (!templateNote) {
|
||||
@@ -1037,6 +1035,8 @@ function duplicateSubtreeInner(origNote: BNote, origBranch: BBranch | null | und
|
||||
}
|
||||
}
|
||||
|
||||
asyncPostProcessContent(newNote, content);
|
||||
|
||||
return newNote;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user