mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-11-27 08:09:21 +00:00
fix: run the pinned version from a flow version's page (#12505)
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user