1
0
Fork 0
mirror of synced 2024-09-05 12:11:40 +12:00

bugfix: workflow still passing instanceId to api()

This commit is contained in:
Michael Shanks 2020-06-20 20:30:00 +01:00
parent e41e2c3fad
commit af0ed48774
2 changed files with 3 additions and 3 deletions

View file

@ -3,9 +3,9 @@ import api from "../../api"
import Workflow from "./Workflow" import Workflow from "./Workflow"
const workflowActions = store => ({ const workflowActions = store => ({
fetch: async instanceId => { fetch: async () => {
const WORKFLOWS_URL = `/api/workflows` 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() const json = await workflowResponse.json()
store.update(state => { store.update(state => {
state.workflows = json state.workflows = json

View file

@ -22,7 +22,7 @@
} }
onMount(() => { onMount(() => {
workflowStore.actions.fetch($backendUiStore.selectedDatabase._id) workflowStore.actions.fetch()
}) })
</script> </script>