mirror of
https://github.com/nasa/openmct.git
synced 2025-04-23 02:13:52 +00:00
Revert object.assign change
This commit is contained in:
parent
c617a440eb
commit
7c289d76b6
src/plugins/condition
@ -141,7 +141,7 @@ export default class ConditionManager extends EventEmitter {
|
||||
}
|
||||
|
||||
cloneCondition(conditionConfiguration, index) {
|
||||
this.createAndSaveCondition(index, Object.assign({}, conditionConfiguration));
|
||||
this.createAndSaveCondition(index, JSON.parse(JSON.stringify(conditionConfiguration)));
|
||||
}
|
||||
|
||||
createAndSaveCondition(index, conditionConfiguration) {
|
||||
|
@ -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();
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user