diff options
Diffstat (limited to 'catalog-ui/src/app/models/graph/relationship.ts')
-rw-r--r-- | catalog-ui/src/app/models/graph/relationship.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/catalog-ui/src/app/models/graph/relationship.ts b/catalog-ui/src/app/models/graph/relationship.ts index 8d56272fa0..13a1bd13e0 100644 --- a/catalog-ui/src/app/models/graph/relationship.ts +++ b/catalog-ui/src/app/models/graph/relationship.ts @@ -119,4 +119,11 @@ export class Relationship { this.capability = capability; this.requirement = requirement; }; + + public toJSON = ():any => { + let temp = angular.copy(this); + temp.capability = undefined; + temp.requirement = undefined; + return temp; + } } |