mirror of
https://github.com/zadam/trilium.git
synced 2025-01-16 12:08:03 +08:00
don't try to fill additional properties for erased entities
This commit is contained in:
parent
61e78858bc
commit
5011b6a51a
1 changed files with 4 additions and 0 deletions
|
@ -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…
Reference in a new issue