mirror of
https://github.com/zadam/trilium.git
synced 2025-11-07 22:05:44 +01:00
after creation of inverse relation we need to clear the cache, otherwise inverse relations will be created infinitely, fixes #2269
This commit is contained in:
@@ -137,6 +137,9 @@ eventService.subscribe(eventService.ENTITY_CHANGED, ({ entityName, entity }) =>
|
|||||||
value: note.noteId,
|
value: note.noteId,
|
||||||
isInheritable: entity.isInheritable
|
isInheritable: entity.isInheritable
|
||||||
}).save();
|
}).save();
|
||||||
|
|
||||||
|
// becca will not be updated before we'll check from the other side which would create infinite relation creation (#2269)
|
||||||
|
targetNote.invalidateThisCache();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user