mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-19 17:14:57 +00:00
Clone the object before reference it
This commit is contained in:
parent
df15e15b39
commit
fa79ff691b
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user