Skip to content

Commit

Permalink
fix: fix iterator upstream check
Browse files Browse the repository at this point in the history
  • Loading branch information
donch1989 committed Oct 31, 2024
1 parent 24153e2 commit 9c6462f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions pkg/recipe/dag.go
Original file line number Diff line number Diff line change
Expand Up @@ -560,6 +560,18 @@ func GenerateDAG(componentMap datamodel.ComponentMap) (*dag, error) {
if component.Input != nil {
parents = append(parents, FindReferenceParent(component.Input.(string))...)
}
if component.Range != nil {
switch rangeVal := component.Range.(type) {
case []any:
for _, v := range rangeVal {
parents = append(parents, FindReferenceParent(fmt.Sprintf("%v", v))...)
}
case map[string]any:
for _, v := range rangeVal {
parents = append(parents, FindReferenceParent(fmt.Sprintf("%v", v))...)
}
}
}
nestedComponentIDs := []string{id}
for nestedID := range component.Component {
nestedComponentIDs = append(nestedComponentIDs, nestedID)
Expand Down

0 comments on commit 9c6462f

Please sign in to comment.