From 63275563abd9920917d2c4f752691759e0c669a5 Mon Sep 17 00:00:00 2001 From: Dean Date: Thu, 28 Nov 2024 12:53:47 +0000 Subject: [PATCH] Refactored test data update functionality missing from initial commit --- packages/builder/src/stores/builder/automations.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/builder/src/stores/builder/automations.js b/packages/builder/src/stores/builder/automations.js index b7d55ee2d4..e6a27f5dcc 100644 --- a/packages/builder/src/stores/builder/automations.js +++ b/packages/builder/src/stores/builder/automations.js @@ -880,13 +880,13 @@ const automationActions = store => ({ appId, }) }, - addTestDataToAutomation: async data => { + addTestDataToAutomation: data => { let newAutomation = cloneDeep(get(selectedAutomation).data) newAutomation.testData = { ...newAutomation.testData, ...data, } - await store.actions.save(newAutomation) + return newAutomation }, constructBlock(type, stepId, blockDefinition) { let newName