mirror of
https://github.com/zadam/trilium.git
synced 2025-06-05 17:38:47 +02:00
Fix relation map crash on missing inverse pair (fixes #3055)
This commit is contained in:
parent
6dee1f38f7
commit
ddb57e35f3
@ -181,6 +181,7 @@ function getRelationMap(req) {
|
||||
|
||||
if (def.inverseRelation) {
|
||||
resp.inverseRelations[relationDefinition.getDefinedName()] = def.inverseRelation;
|
||||
resp.inverseRelations[def.inverseRelation] = relationDefinition.getDefinedName();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user