Adds missing id during create condition
This commit is contained in:
@@ -308,8 +308,7 @@ export default {
|
||||
this.persist();
|
||||
},
|
||||
cloneCriterion(index) {
|
||||
const clonedCriterion = JSON.parse(JSON.stringify(this.condition.configuration.criteria[index]));
|
||||
clonedCriterion.id = uuid();
|
||||
const clonedCriterion = Object.assign({}, this.condition.configuration.criteria[index], { id: uuid() });
|
||||
this.condition.configuration.criteria.splice(index + 1, 0, clonedCriterion);
|
||||
this.persist();
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user