summaryrefslogtreecommitdiffstats
path: root/catalog-ui/src/app/models/graph/graph-links
diff options
context:
space:
mode:
Diffstat (limited to 'catalog-ui/src/app/models/graph/graph-links')
-rw-r--r--catalog-ui/src/app/models/graph/graph-links/composition-graph-links/composition-ci-ucpe-link.ts2
-rw-r--r--catalog-ui/src/app/models/graph/graph-links/links-factory.ts4
2 files changed, 3 insertions, 3 deletions
diff --git a/catalog-ui/src/app/models/graph/graph-links/composition-graph-links/composition-ci-ucpe-link.ts b/catalog-ui/src/app/models/graph/graph-links/composition-graph-links/composition-ci-ucpe-link.ts
index 6b2e12a215..42cce998f1 100644
--- a/catalog-ui/src/app/models/graph/graph-links/composition-graph-links/composition-ci-ucpe-link.ts
+++ b/catalog-ui/src/app/models/graph/graph-links/composition-graph-links/composition-ci-ucpe-link.ts
@@ -29,7 +29,7 @@ export class CompositionCiUcpeLink extends CompositionCiLinkBase {
super(relation, singleRelation);
this.isFromUcpe = from;
this.target = relation.toNode;
- this.source = singleRelation.requirementOwnerId;
+ this.source = singleRelation.relation.requirementOwnerId;
this.relation.relationships = [singleRelation];
this.color = GraphColors.BASE_LINK;
}
diff --git a/catalog-ui/src/app/models/graph/graph-links/links-factory.ts b/catalog-ui/src/app/models/graph/graph-links/links-factory.ts
index 0be5d6faf6..88c5323330 100644
--- a/catalog-ui/src/app/models/graph/graph-links/links-factory.ts
+++ b/catalog-ui/src/app/models/graph/graph-links/links-factory.ts
@@ -46,7 +46,7 @@ export class LinksFactory {
// newRelation = new CompositionCiUcpeLink(relation, fromNode.isUcpePart, singleRelation);
// }
// } else
- if (singleRelation.relationship.type && _.includes(singleRelation.relationship.type.toLowerCase(), 'link')) {
+ if (singleRelation.relation.relationship.type && _.includes(singleRelation.relation.relationship.type.toLowerCase(), 'link')) {
newRelation = new CompositionCiVLink(relation, singleRelation);
} else {
newRelation = new CompositionCiSimpleLink(relation, singleRelation);
@@ -68,7 +68,7 @@ export class LinksFactory {
let newRelation:ModuleCiLinkBase;
- if (_.includes(singleRelation.relationship.type.toLowerCase(), 'link')) {
+ if (_.includes(singleRelation.relation.relationship.type.toLowerCase(), 'link')) {
newRelation = new ModuleCiVlLink(relation, singleRelation);
} else {
newRelation = new ModuleCiLinkBase(relation, singleRelation);