mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
don't try to fill additional properties for erased entities
This commit is contained in:
parent
61e78858bc
commit
5011b6a51a
@ -75,6 +75,10 @@ function sendMessageToAllClients(message) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function fillInAdditionalProperties(entityChange) {
|
function fillInAdditionalProperties(entityChange) {
|
||||||
|
if (entityChange.isErased) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// fill in some extra data needed by the frontend
|
// fill in some extra data needed by the frontend
|
||||||
if (entityChange.entityName === 'attributes') {
|
if (entityChange.entityName === 'attributes') {
|
||||||
entityChange.entity = sql.getRow(`SELECT * FROM attributes WHERE attributeId = ?`, [entityChange.entityId]);
|
entityChange.entity = sql.getRow(`SELECT * FROM attributes WHERE attributeId = ?`, [entityChange.entityId]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user