Skip to content

Build your personal knowledge base with Trilium Notes

after creation of inverse relation we need to clear the cache, otherwise inverse relations will be created infinitely, fixes #2269

zadam7f9019322b48
diff --git a/src/services/handlers.js b/src/services/handlers.js
index 75caaaa52b..57b2d4d90e 100644
--- a/src/services/handlers.js
+++ b/src/services/handlers.js
@@ -137,6 +137,9 @@ eventService.subscribe(eventService.ENTITY_CHANGED, ({ entityName, entity }) =>
value: note.noteId,
isInheritable: entity.isInheritable
}).save();
+
+ // becca will not be updated before we'll check from the other side which would create infinite relation creation (#2269)
+ targetNote.invalidateThisCache();
}
});
});