fix(workflow): panic error in exit node (#2105)

main
lvxinyu-1117 1 month ago committed by GitHub
parent 1d9fa80972
commit 764ffc2213
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      backend/domain/workflow/internal/nodes/exit/exit.go

@ -82,8 +82,10 @@ func (c *Config) Adapt(_ context.Context, n *vo.Node, _ ...nodes.AdaptOption) (*
return nil, fmt.Errorf("exit node's content value type must be %s, got %s", vo.BlockInputValueTypeLiteral, content.Value.Type)
}
if content.Value.Content != nil {
c.Template = content.Value.Content.(string)
}
}
if n.Data.Inputs.TerminatePlan == nil {
return nil, fmt.Errorf("exit node requires a TerminatePlan")

Loading…
Cancel
Save