diff --git a/frontend/res.json b/frontend/res.json new file mode 100644 index 0000000000..4c89aae894 --- /dev/null +++ b/frontend/res.json @@ -0,0 +1 @@ +{"started":true,"success":true,"completed":true,"result":""} \ No newline at end of file diff --git a/frontend/src/lib/components/FlowStatusWaitingForEvents.svelte b/frontend/src/lib/components/FlowStatusWaitingForEvents.svelte index c207bfb58b..72ddfd141c 100644 --- a/frontend/src/lib/components/FlowStatusWaitingForEvents.svelte +++ b/frontend/src/lib/components/FlowStatusWaitingForEvents.svelte @@ -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