fix: refresh jobs result when hopping from flow to flow

This commit is contained in:
Ruben Fiszel
2022-07-31 19:40:56 +02:00
parent cb61adc795
commit c86abe6ae0
@@ -13,6 +13,8 @@
export let job: QueuedJob | CompletedJob
export let jobs: (CompletedJob | CompletedJob[] | undefined)[] = []
let lastJobid: string | undefined
let forloop_selected = ''
let logs: { [key: number]: string } = {}
@@ -36,6 +38,10 @@
}
}
}
if (job.id != lastJobid) {
lastJobid = job.id
jobs = []
}
job?.flow_status?.modules?.forEach(async (x, i) => {
if (
(i >= jobs.length && x.type == FlowStatusModule.type.SUCCESS) ||