Revert object.assign change

This commit is contained in:
Joshi
2020-04-02 10:40:39 -07:00
parent c617a440eb
commit 7c289d76b6
2 changed files with 3 additions and 2 deletions

View File

@@ -308,7 +308,8 @@ export default {
this.persist();
},
cloneCriterion(index) {
const clonedCriterion = Object.assign({}, this.condition.configuration.criteria[index], { id: uuid() });
const clonedCriterion = JSON.parse(JSON.stringify(this.condition.configuration.criteria[index]));
clonedCriterion.id = uuid();
this.condition.configuration.criteria.splice(index + 1, 0, clonedCriterion);
this.persist();
},