mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-10 18:39:22 +08:00
allow copying type, mime, content from template only for text and code note types, fixes #1689
This commit is contained in:
parent
cb6d35236c
commit
cde41b268e
@ -53,7 +53,7 @@ eventService.subscribe(eventService.ENTITY_CREATED, ({ entityName, entity }) =>
|
|||||||
if (entity.type === 'relation' && entity.name === 'template') {
|
if (entity.type === 'relation' && entity.name === 'template') {
|
||||||
const note = repository.getNote(entity.noteId);
|
const note = repository.getNote(entity.noteId);
|
||||||
|
|
||||||
if (!note.isStringNote()) {
|
if (!["text", "code"].includes(note.type)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user