From e4c19bd9fd4be5343d4662a2d16867656a6d9d52 Mon Sep 17 00:00:00 2001 From: Michael Shanks Date: Sat, 20 Jun 2020 20:30:00 +0100 Subject: [PATCH] bugfix: workflow still passing instanceId to api() --- packages/builder/src/builderStore/store/workflow/index.js | 4 ++-- .../workflow/WorkflowPanel/WorkflowList/WorkflowList.svelte | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/builder/src/builderStore/store/workflow/index.js b/packages/builder/src/builderStore/store/workflow/index.js index d794868df3..9d50f85661 100644 --- a/packages/builder/src/builderStore/store/workflow/index.js +++ b/packages/builder/src/builderStore/store/workflow/index.js @@ -3,9 +3,9 @@ import api from "../../api" import Workflow from "./Workflow" const workflowActions = store => ({ - fetch: async instanceId => { + fetch: async () => { const WORKFLOWS_URL = `/api/workflows` - const workflowResponse = await api(instanceId).get(WORKFLOWS_URL) + const workflowResponse = await api.get(WORKFLOWS_URL) const json = await workflowResponse.json() store.update(state => { state.workflows = json diff --git a/packages/builder/src/components/workflow/WorkflowPanel/WorkflowList/WorkflowList.svelte b/packages/builder/src/components/workflow/WorkflowPanel/WorkflowList/WorkflowList.svelte index f4c0f2ebf8..ece0a47016 100644 --- a/packages/builder/src/components/workflow/WorkflowPanel/WorkflowList/WorkflowList.svelte +++ b/packages/builder/src/components/workflow/WorkflowPanel/WorkflowList/WorkflowList.svelte @@ -22,7 +22,7 @@ } onMount(() => { - workflowStore.actions.fetch($backendUiStore.selectedDatabase._id) + workflowStore.actions.fetch() })