mirror of
https://github.com/zadam/trilium.git
synced 2024-11-11 18:08:13 +08:00
Fix relation map crash on missing inverse pair (fixes #3055)
This commit is contained in:
parent
6dee1f38f7
commit
ddb57e35f3
1 changed files with 1 additions and 0 deletions
|
@ -181,6 +181,7 @@ function getRelationMap(req) {
|
||||||
|
|
||||||
if (def.inverseRelation) {
|
if (def.inverseRelation) {
|
||||||
resp.inverseRelations[relationDefinition.getDefinedName()] = def.inverseRelation;
|
resp.inverseRelations[relationDefinition.getDefinedName()] = def.inverseRelation;
|
||||||
|
resp.inverseRelations[def.inverseRelation] = relationDefinition.getDefinedName();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue