From 7f9e8fa32156f4f9a1507c409b84c23b8ba99d89 Mon Sep 17 00:00:00 2001 From: Maurits Lourens Date: Thu, 26 Aug 2021 15:58:24 +0200 Subject: [PATCH] fix calls to automations.save, which doesn't need the instanceId --- .../components/automation/SetupPanel/SetupPanel.svelte | 9 ++------- .../automation/Shared/CreateWebhookModal.svelte | 5 +---- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/packages/builder/src/components/automation/SetupPanel/SetupPanel.svelte b/packages/builder/src/components/automation/SetupPanel/SetupPanel.svelte index 3ba59f36a..65e0009ba 100644 --- a/packages/builder/src/components/automation/SetupPanel/SetupPanel.svelte +++ b/packages/builder/src/components/automation/SetupPanel/SetupPanel.svelte @@ -1,13 +1,11 @@ diff --git a/packages/builder/src/components/automation/Shared/CreateWebhookModal.svelte b/packages/builder/src/components/automation/Shared/CreateWebhookModal.svelte index 04656c1e2..ac63ba6a4 100644 --- a/packages/builder/src/components/automation/Shared/CreateWebhookModal.svelte +++ b/packages/builder/src/components/automation/Shared/CreateWebhookModal.svelte @@ -18,10 +18,7 @@ onMount(async () => { if (!automation?.definition?.trigger?.inputs.schemaUrl) { // save the automation initially - await automationStore.actions.save({ - instanceId, - automation, - }) + await automationStore.actions.save(automation) } interval = setInterval(async () => { await automationStore.actions.fetch()