diff --git a/packages/builder/src/components/automation/AutomationBuilder/FlowChart/FlowItem.svelte b/packages/builder/src/components/automation/AutomationBuilder/FlowChart/FlowItem.svelte
index 412683721f..c1618a890f 100644
--- a/packages/builder/src/components/automation/AutomationBuilder/FlowChart/FlowItem.svelte
+++ b/packages/builder/src/components/automation/AutomationBuilder/FlowChart/FlowItem.svelte
@@ -52,8 +52,9 @@
x => x.blockToLoop === block.id
)
- $: setPermissions(role)
- $: getPermissions(automationId)
+ $: isAppAction = block?.stepId === TriggerStepID.APP
+ $: isAppAction && setPermissions(role)
+ $: isAppAction && getPermissions(automationId)
async function setPermissions(role) {
if (!role || !automationId) {
@@ -238,7 +239,7 @@
{/if}
- {#if block.stepId === TriggerStepID.APP}
+ {#if isAppAction}
{/if}
diff --git a/packages/builder/src/pages/builder/portal/overview/[application]/index.svelte b/packages/builder/src/pages/builder/portal/overview/[application]/index.svelte
index 293f19ebe4..b2dac7682f 100644
--- a/packages/builder/src/pages/builder/portal/overview/[application]/index.svelte
+++ b/packages/builder/src/pages/builder/portal/overview/[application]/index.svelte
@@ -139,9 +139,10 @@
notifications.success("App ID copied to clipboard.")
}
- const exportApp = app => {
- const id = isPublished ? app.prodId : app.devId
+ const exportApp = (app, opts = { published: false }) => {
const appName = encodeURIComponent(app.name)
+ const id = opts?.published ? app.prodId : app.devId
+ // always export the development version
window.location = `/api/backups/export?appId=${id}&appname=${appName}`
}
@@ -266,12 +267,21 @@
-