diff options
Diffstat (limited to 'vid-webpack-master/src/app/shared')
-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; + } } } |