diff --git a/packages/builder/package.json b/packages/builder/package.json
index 25c0f9aa4a..cc37af2b63 100644
--- a/packages/builder/package.json
+++ b/packages/builder/package.json
@@ -63,7 +63,7 @@
}
},
"dependencies": {
- "@budibase/bbui": "^1.46.0",
+ "@budibase/bbui": "^1.47.0",
"@budibase/client": "^0.2.6",
"@budibase/colorpicker": "^1.0.1",
"@fortawesome/fontawesome-free": "^5.14.0",
diff --git a/packages/builder/src/builderStore/store/automation/index.js b/packages/builder/src/builderStore/store/automation/index.js
index e1db07053e..3f0743aa1e 100644
--- a/packages/builder/src/builderStore/store/automation/index.js
+++ b/packages/builder/src/builderStore/store/automation/index.js
@@ -11,12 +11,20 @@ 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/AutomationBuilder/BlockList.svelte b/packages/builder/src/components/automation/AutomationBuilder/BlockList.svelte
index cc38928408..de3e9660ad 100644
--- a/packages/builder/src/components/automation/AutomationBuilder/BlockList.svelte
+++ b/packages/builder/src/components/automation/AutomationBuilder/BlockList.svelte
@@ -1,9 +1,10 @@
@@ -91,6 +95,9 @@
{/each}
+
See below the list of deployed webhook URLs.
+ {#each webhookUrls as webhookUrl} +