Fix relation map crash on missing inverse pair (fixes #3055)

This commit is contained in:
Elian Doran 2022-08-14 04:30:00 +03:00
parent 6dee1f38f7
commit ddb57e35f3

View file

@ -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();
} }
} }
} }