diff options
author | Eylon Malin <eylon.malin@intl.att.com> | 2019-12-16 08:30:21 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-12-16 08:30:21 +0000 |
commit | 11c8679592f4f0e273643a54b6be9c9aebe148e8 (patch) | |
tree | 228838c536568f43fabe6a99c3b99dbdb69fd51c | |
parent | 6c2d093616066502c1551851eaa66e17de0b562f (diff) | |
parent | 56fb864d82b0c30efbb1f0e18174b53b78e0ccc2 (diff) |
Merge "fix FE unit test serviceBase modal"
-rw-r--r-- | vid-webpack-master/src/app/shared/models/serviceBase.ts | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/vid-webpack-master/src/app/shared/models/serviceBase.ts b/vid-webpack-master/src/app/shared/models/serviceBase.ts index b6dec0fbb..afa8a8136 100644 --- a/vid-webpack-master/src/app/shared/models/serviceBase.ts +++ b/vid-webpack-master/src/app/shared/models/serviceBase.ts @@ -2,8 +2,10 @@ export class InstantiationBase { readonly jobId: string; readonly serviceModelId: string; - constructor(data) { - this.jobId = data.jobId; - this.serviceModelId = data.serviceModelId; + constructor(data?) { + if(data){ + this.jobId = data.jobId; + this.serviceModelId = data.serviceModelId; + } } } |