From dab85c0c4329e794353a073999ec0fa6a1c62465 Mon Sep 17 00:00:00 2001 From: Vito Date: Fri, 6 Nov 2020 15:59:47 +0000 Subject: [PATCH] Added optional on variable models to avoid breaking changes (#6328) Co-authored-by: Vito Albano --- lib/core/form/models/task-process-variable.model.ts | 4 ++-- .../src/lib/form/models/task-variable-cloud.model.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/core/form/models/task-process-variable.model.ts b/lib/core/form/models/task-process-variable.model.ts index f0e617bd09..760951539d 100644 --- a/lib/core/form/models/task-process-variable.model.ts +++ b/lib/core/form/models/task-process-variable.model.ts @@ -16,7 +16,7 @@ */ export class TaskProcessVariableModel { - id: string; - type: string; + id?: string; + type?: string; value: string; } diff --git a/lib/process-services-cloud/src/lib/form/models/task-variable-cloud.model.ts b/lib/process-services-cloud/src/lib/form/models/task-variable-cloud.model.ts index bf794026d9..48716d1bfb 100644 --- a/lib/process-services-cloud/src/lib/form/models/task-variable-cloud.model.ts +++ b/lib/process-services-cloud/src/lib/form/models/task-variable-cloud.model.ts @@ -18,8 +18,8 @@ export class TaskVariableCloud { name: string; value: any; - type: string; - id: string; + type?: string; + id?: string; constructor(obj) { this.id = obj.name || null; this.name = obj.name || null;