mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
entity deleltion should not trigger ENTITY_CHANGED event, it should be separate event
This commit is contained in:
parent
b009bcb6a0
commit
3bb021fba1
@ -95,10 +95,13 @@ async function updateEntity(entity) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
await eventService.emit(eventService.ENTITY_CHANGED, {
|
// it seems to be better to handle deletion with a separate event
|
||||||
entityName,
|
if (!entity.isDeleted) {
|
||||||
entity
|
await eventService.emit(eventService.ENTITY_CHANGED, {
|
||||||
});
|
entityName,
|
||||||
|
entity
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user