mirror of
https://github.com/zadam/trilium.git
synced 2025-11-06 21:36:05 +01:00
always use template strings instead of string concatenation
This commit is contained in:
@@ -123,7 +123,7 @@ eventService.subscribe(eventService.CHILD_NOTE_CREATED, ({ parentNote, childNote
|
||||
function processInverseRelations(entityName, entity, handler) {
|
||||
if (entityName === 'attributes' && entity.type === 'relation') {
|
||||
const note = entity.getNote();
|
||||
const relDefinitions = note.getLabels('relation:' + entity.name);
|
||||
const relDefinitions = note.getLabels(`relation:${entity.name}`);
|
||||
|
||||
for (const relDefinition of relDefinitions) {
|
||||
const definition = relDefinition.getDefinition();
|
||||
|
||||
Reference in New Issue
Block a user