mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 09:58:32 +02:00
fix broken template copy, closes #1724
This commit is contained in:
parent
fba68681aa
commit
a654078e56
@ -61,7 +61,7 @@ eventService.subscribe(eventService.ENTITY_CREATED, ({ entityName, entity }) =>
|
|||||||
|
|
||||||
const content = note.getContent();
|
const content = note.getContent();
|
||||||
|
|
||||||
if (!["text", "code"].includes(note.type)
|
if (["text", "code"].includes(note.type)
|
||||||
// if the note has already content we're not going to overwrite it with template's one
|
// if the note has already content we're not going to overwrite it with template's one
|
||||||
&& (!content || content.trim().length === 0)
|
&& (!content || content.trim().length === 0)
|
||||||
&& templateNote.isStringNote()) {
|
&& templateNote.isStringNote()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user