diff --git a/packages/builder/src/builderStore/store/automation/index.js b/packages/builder/src/builderStore/store/automation/index.js
index e1db07053e..b6a1941996 100644
--- a/packages/builder/src/builderStore/store/automation/index.js
+++ b/packages/builder/src/builderStore/store/automation/index.js
@@ -11,12 +11,18 @@ const automationActions = store => ({
])
const jsonResponses = await Promise.all(responses.map(x => x.json()))
store.update(state => {
+ let selected = state.selectedAutomation?.automation
state.automations = jsonResponses[0]
state.blockDefinitions = {
TRIGGER: jsonResponses[1].trigger,
ACTION: jsonResponses[1].action,
LOGIC: jsonResponses[1].logic,
}
+ // if previously selected find the new obj and select it
+ if (selected) {
+ selected = jsonResponses[0].filter(automation => automation._id === selected._id)
+ state.selectedAutomation = new Automation(selected[0])
+ }
return state
})
},
diff --git a/packages/builder/src/components/automation/AutomationPanel/BlockList/AutomationBlock.svelte b/packages/builder/src/components/automation/AutomationPanel/BlockList/AutomationBlock.svelte
index 45d3b17940..f2a52088ad 100644
--- a/packages/builder/src/components/automation/AutomationPanel/BlockList/AutomationBlock.svelte
+++ b/packages/builder/src/components/automation/AutomationPanel/BlockList/AutomationBlock.svelte
@@ -1,11 +1,15 @@
+
+
+
To configure a webhook we need to create a schema for your webhook to validate against.
+ Use the URL shown below and send a POST request to it with a JSON body in the format that
+ your webhook should use!