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. 4
      backend/domain/workflow/internal/nodes/exit/exit.go

@ -82,7 +82,9 @@ 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) return nil, fmt.Errorf("exit node's content value type must be %s, got %s", vo.BlockInputValueTypeLiteral, content.Value.Type)
} }
c.Template = content.Value.Content.(string) if content.Value.Content != nil {
c.Template = content.Value.Content.(string)
}
} }
if n.Data.Inputs.TerminatePlan == nil { if n.Data.Inputs.TerminatePlan == nil {

Loading…
Cancel
Save