Skip to content

Build your personal knowledge base with Trilium Notes

Merge remote-tracking branch 'origin/stable'

zadamda0670188b57
diff --cc src/services/ws.js
index c0c1100129,bb4b5bcf2e..e51bbc4b42
--- a/src/services/ws.js
+++ b/src/services/ws.js
@@@ -75,10 -75,10 +75,14 @@@ function sendMessageToAllClients(messag
}
function fillInAdditionalProperties(entityChange) {
+ // most of these could be filled by becca
+ // the exception is isDeleted - in that case becca doesn't contain such entity at all
+ // this would have to be handled separately
+
+ if (entityChange.isErased) {
+ return;
+ }
+
// fill in some extra data needed by the frontend
if (entityChange.entityName === 'attributes') {
entityChange.entity = sql.getRow(`SELECT * FROM attributes WHERE attributeId = ?`, [entityChange.entityId]);