fix: run the pinned version from a flow version's page (#12505)

This commit is contained in:
Raunak Burrows
2026-11-18 17:56:22 +01:00
committed by GitHub
parent 75905a821e
commit 8984bccf83
@@ -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.