Refactored test data update functionality missing from initial commit
This commit is contained in:
parent
7f5ca044aa
commit
63275563ab
|
@ -880,13 +880,13 @@ const automationActions = store => ({
|
||||||
appId,
|
appId,
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
addTestDataToAutomation: async data => {
|
addTestDataToAutomation: data => {
|
||||||
let newAutomation = cloneDeep(get(selectedAutomation).data)
|
let newAutomation = cloneDeep(get(selectedAutomation).data)
|
||||||
newAutomation.testData = {
|
newAutomation.testData = {
|
||||||
...newAutomation.testData,
|
...newAutomation.testData,
|
||||||
...data,
|
...data,
|
||||||
}
|
}
|
||||||
await store.actions.save(newAutomation)
|
return newAutomation
|
||||||
},
|
},
|
||||||
constructBlock(type, stepId, blockDefinition) {
|
constructBlock(type, stepId, blockDefinition) {
|
||||||
let newName
|
let newName
|
||||||
|
|
Loading…
Reference in New Issue