mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-10-09 08:02:25 +00:00
fix(flows): populate error handler input args from failure picker (#9087)
* fix(flows): populate error handler input args from failure picker * style(flows): fix indentation in failure-step branch
This commit is contained in:
@@ -4,10 +4,10 @@ import {
|
||||
dfs,
|
||||
getPreviousModule,
|
||||
getStepPropPicker,
|
||||
type PickableProperties
|
||||
type PickableProperties,
|
||||
getFailureStepPropPicker
|
||||
} from './previousResults'
|
||||
import { evalValue } from './utils.svelte'
|
||||
|
||||
export class StepsInputArgs {
|
||||
#stepsEvaluated = $state<Record<string, Record<string, any>>>({})
|
||||
#steps = $state<Record<string, Record<string, any>>>({})
|
||||
@@ -158,6 +158,15 @@ export class StepsInputArgs {
|
||||
flow: OpenFlow | undefined,
|
||||
previewArgs: Record<string, any> | undefined
|
||||
) {
|
||||
if (id === 'failure' && flow && flow.value.failure_module && flowState) {
|
||||
const picker = getFailureStepPropPicker(flowState, flow, previewArgs)
|
||||
this.initializeFromSchema(
|
||||
flow.value.failure_module,
|
||||
flowState['failure']?.schema ?? {},
|
||||
picker.pickableProperties
|
||||
)
|
||||
return
|
||||
}
|
||||
if (!flowState || !flow) {
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user