mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
Clone the object before reference it
This commit is contained in:
@@ -109,9 +109,11 @@ export class ActivitiStartProcessButton implements OnInit, OnChanges {
|
||||
}
|
||||
|
||||
onChange(processDefinitionId) {
|
||||
this.currentProcessDef = this.processDefinitions.filter((processDefinition) => {
|
||||
let processDef = this.processDefinitions.find((processDefinition) => {
|
||||
return processDefinition.id === processDefinitionId;
|
||||
})[0];
|
||||
});
|
||||
let clone = JSON.parse(JSON.stringify(processDef));
|
||||
this.currentProcessDef = clone;
|
||||
}
|
||||
|
||||
hasStartForm() {
|
||||
|
Reference in New Issue
Block a user