mirror of
https://github.com/zadam/trilium.git
synced 2025-01-16 12:08:03 +08:00
trigger runOnAttributeChange, runOnNoteChange on entity deletions as well
This commit is contained in:
parent
3c19a712c0
commit
581b1fdaa5
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ eventService.subscribe(eventService.NOTE_TITLE_CHANGED, async note => {
|
|||
}
|
||||
});
|
||||
|
||||
eventService.subscribe(eventService.ENTITY_CHANGED, async ({ entityName, entity }) => {
|
||||
eventService.subscribe([ eventService.ENTITY_CHANGED, eventService.ENTITY_DELETED ], async ({ entityName, entity }) => {
|
||||
if (entityName === 'attributes') {
|
||||
await runAttachedRelations(await entity.getNote(), 'runOnAttributeChange', entity);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue