diff --git a/frontend/src/lib/components/details/FlowDetail.svelte b/frontend/src/lib/components/details/FlowDetail.svelte index b923b4f717..694f4529de 100644 --- a/frontend/src/lib/components/details/FlowDetail.svelte +++ b/frontend/src/lib/components/details/FlowDetail.svelte @@ -321,15 +321,19 @@ loading = true const scheduledFor = scheduledForStr ? new Date(scheduledForStr).toISOString() : undefined try { - let run = await JobService.runFlowByPath({ + const params = { workspace: workspace!, - path, invisibleToOwner, requestBody: args, scheduledFor, tag: overrideTag, skipPreprocessor: true - }) + } + // A pinned version runs as shown, not the latest deployed one. + let run = + pinnedVersion !== undefined + ? await JobService.runFlowByVersion({ ...params, version: pinnedVersion }) + : await JobService.runFlowByPath({ ...params, path }) // The call asked for this run; it follows the job rather than starting one, and // shows it in place of this page — so navigating here as well would leave two // surfaces open on the same job.