Skip to content

Commit

Permalink
fix: Update aas-tree-row.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
ralfaron authored Aug 25, 2024
1 parent e4447e3 commit aeddf04
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions projects/aas-lib/src/lib/aas-tree/aas-tree-row.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ export class AASTreeRow extends TreeNode<aas.Referable> {
return this.firstChild >= 0;
}

public get annotatedRelationship(): aas.AnnotatedRelationshipElement | undefined {
return this.element.modelType === 'AnnotatedRelationshipElement'
? (this.element as aas.AnnotatedRelationshipElement)
public get relatioshipElement(): aas.RelationshipElement | undefined {
return this.element.modelType === 'RelationshipElement'
? (this.element as aas.RelationshipElement)
: undefined;
}
}
Expand Down

0 comments on commit aeddf04

Please sign in to comment.