diff --git a/frontend/src/lib/components/FlowPreview.svelte b/frontend/src/lib/components/FlowPreview.svelte index 0cc5cb5678..fe55d1eff8 100644 --- a/frontend/src/lib/components/FlowPreview.svelte +++ b/frontend/src/lib/components/FlowPreview.svelte @@ -26,7 +26,6 @@ let uptoText = i >= flow.value.modules.length - 1 ? 'Preview whole flow' : 'Preview up to this step' - let job: Job | undefined let jobId: string export async function runPreview(args: any) { diff --git a/frontend/src/lib/components/FlowPreviewContent.svelte b/frontend/src/lib/components/FlowPreviewContent.svelte index 31ab1e79cd..a09ed81bff 100644 --- a/frontend/src/lib/components/FlowPreviewContent.svelte +++ b/frontend/src/lib/components/FlowPreviewContent.svelte @@ -1,7 +1,4 @@ @@ -79,9 +52,8 @@ disabled={!isValid} color="red" on:click={() => { - clearInterval(intervalId) intervalState = 'canceled' - job = undefined + jobId = undefined }} size="md" > @@ -94,9 +66,9 @@ {/if}
- {#if job?.id} + {#if jobId} mapJobResultsToFlowState(e.detail, 'upto', steps - 1)} root={true} /> diff --git a/frontend/src/lib/components/FlowStatusViewer.svelte b/frontend/src/lib/components/FlowStatusViewer.svelte index b3d14e58bb..bbc30b2785 100644 --- a/frontend/src/lib/components/FlowStatusViewer.svelte +++ b/frontend/src/lib/components/FlowStatusViewer.svelte @@ -85,6 +85,8 @@ {#if `result` in job} + {:else} +
{job.logs}
{/if} {#if Array.isArray(forloopJobIds) && forloopJobIds?.length > 0 && Array.isArray(loopJobs)}