summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSara Weiss <sara.weiss@intl.att.com>2019-12-16 09:52:31 +0200
committerSara Weiss <sara.weiss@intl.att.com>2019-12-16 09:52:31 +0200
commit56fb864d82b0c30efbb1f0e18174b53b78e0ccc2 (patch)
tree4327f3023311cd028893aa1ccbf78432582d14b4
parent73e153974e4f5a7dc4a60f5612fd30ca6a47dee0 (diff)
fix FE unit test serviceBase modal
Issue-ID: VID-724 Signed-off-by: Sara Weiss <sara.weiss@intl.att.com> Change-Id: If8ff87b38bfec17f371a7c51d730151f60f89994
-rw-r--r--vid-webpack-master/src/app/shared/models/serviceBase.ts8
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;
+ }
}
}