mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +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:
parent
8a455e83f0
commit
7f9019322b
@ -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();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user