mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-22 16:02:24 +00:00
add default state store to flow status viewer
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
|
||||
export let jobId: string
|
||||
export let workspaceId: string | undefined = undefined
|
||||
export let flowStateStore: Writable<FlowState> | undefined = undefined
|
||||
export let flowStateStore: Writable<FlowState> = writable({})
|
||||
export let selectedJobStep: string | undefined = undefined
|
||||
|
||||
export let isOwner = false
|
||||
|
||||
@@ -313,6 +313,12 @@
|
||||
) {
|
||||
let modId = flowJobIds?.moduleId
|
||||
if (modId) {
|
||||
if ($flowStateStore && $flowStateStore?.[modId] == undefined) {
|
||||
$flowStateStore[modId] = {
|
||||
...$flowStateStore[modId],
|
||||
previewResult: jobLoaded.args
|
||||
}
|
||||
}
|
||||
if ($flowStateStore?.[modId]) {
|
||||
if (!childFlow) {
|
||||
if (
|
||||
|
||||
Reference in New Issue
Block a user