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

This commit is contained in:
lvxinyu-1117
2025-09-11 16:25:02 +08:00
committed by GitHub
parent 1d9fa80972
commit 764ffc2213

View File

@ -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)
}
c.Template = content.Value.Content.(string)
if content.Value.Content != nil {
c.Template = content.Value.Content.(string)
}
}
if n.Data.Inputs.TerminatePlan == nil {