Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
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.jsindex 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();}});});