allow copying type, mime, content from template only for text and code note types, fixes #1689

This commit is contained in:
zadam 2021-02-25 22:33:26 +01:00
parent cb6d35236c
commit cde41b268e

View File

@ -53,7 +53,7 @@ eventService.subscribe(eventService.ENTITY_CREATED, ({ entityName, entity }) =>
if (entity.type === 'relation' && entity.name === 'template') {
const note = repository.getNote(entity.noteId);
if (!note.isStringNote()) {
if (!["text", "code"].includes(note.type)) {
return;
}