mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-18 16:02:10 +00:00
fix: fix approval steps handling of default args
This commit is contained in:
@@ -0,0 +1 @@
|
||||
{"started":true,"success":true,"completed":true,"result":""}
|
||||
@@ -20,11 +20,16 @@
|
||||
let defaultValues = {}
|
||||
$: job && getDefaultArgs()
|
||||
|
||||
let lastJobId: string | undefined = undefined
|
||||
async function getDefaultArgs() {
|
||||
let jobId = job.flow_status?.modules?.[approvalStep]?.job
|
||||
if (jobId === lastJobId) {
|
||||
return
|
||||
}
|
||||
if (!jobId) {
|
||||
return {}
|
||||
}
|
||||
lastJobId = jobId
|
||||
let job_result = await JobService.getCompletedJobResult({
|
||||
workspace: workspaceId ?? $workspaceStore ?? '',
|
||||
id: jobId
|
||||
|
||||
Reference in New Issue
Block a user