Skip to content

Build your personal knowledge base with Trilium Notes

fix sync exception

zadam886ee0dbcb09
diff --git a/src/services/sync_update.js b/src/services/sync_update.js
index b8a12cf249..4877645b07 100644
--- a/src/services/sync_update.js
+++ b/src/services/sync_update.js
@@ -40,6 +40,8 @@ function updateNormalEntity(remoteEC, remoteEntityRow, instanceId) {
// on this side, we can't unerase the entity, so force the entity to be erased on the other side.
entityChangesService.putEntityChangeForOtherInstances(localEC);
+ return false;
+ } else if (localEC?.isErased && remoteEC.isErased) {
return false;
}