loading worklows into state along with appPackage

This commit is contained in:
Michael Shanks 2020-06-24 11:59:07 +01:00
parent 6041003115
commit 1f89dd4b36
1 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,6 @@
<script> <script>
import Modal from "svelte-simple-modal" import Modal from "svelte-simple-modal"
import { store } from "builderStore" import { store, workflowStore } from "builderStore"
import { get } from "builderStore/api" import { get } from "builderStore/api"
import { fade } from "svelte/transition" import { fade } from "svelte/transition"
@ -20,6 +20,7 @@
if (res.ok) { if (res.ok) {
await store.setPackage(pkg) await store.setPackage(pkg)
workflowStore.actions.fetch()
return pkg return pkg
} else { } else {
throw new Error(pkg) throw new Error(pkg)