diff --git a/API.paw b/API.paw index 89619182bb0142fdd2ac561785c494dd24135616..da4a40a18ec609f14fe6130db8a8613356b8c06d 100644 Binary files a/API.paw and b/API.paw differ diff --git a/src/entity/ComponentRelation.ts b/src/entity/ComponentRelation.ts index f788d382724b05eb38d352646ac244416f099332..ab5208ca147e1c119ff628678d3406421cb8c017 100644 --- a/src/entity/ComponentRelation.ts +++ b/src/entity/ComponentRelation.ts @@ -79,6 +79,7 @@ export default class ComponentRelation { .where("relation.to IS NULL") .leftJoinAndSelect("relation.child", "child") .leftJoinAndSelect("relation.parent", "parent") + .andWhere("relation.child = :childId", { childId: component.id }) .getOne(); }