Refactored test data update functionality missing from initial commit

This commit is contained in:
Dean 2024-11-28 12:53:47 +00:00
parent 7f5ca044aa
commit 63275563ab
1 changed files with 2 additions and 2 deletions

View File

@ -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