Skip to content

Commit

Permalink
[fix]: not allowing branches to point to themself
Browse files Browse the repository at this point in the history
  • Loading branch information
yashsinghcodes committed Nov 5, 2024
1 parent 01cdcf9 commit eb3ab0f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions db-connector.go
Original file line number Diff line number Diff line change
Expand Up @@ -8154,6 +8154,9 @@ func FixWorkflowPosition(ctx context.Context, workflow Workflow) Workflow {
if branch.ID == "" {
workflow.Branches[index].ID = uuid.NewV4().String()
}
if branch.DestinationID == branch.SourceID {
workflow.Branches = append(workflow.Branches[:index], workflow.Branches[index+1:]...)
}
}

// Check validation if Schedule is started (?)
Expand Down

0 comments on commit eb3ab0f

Please sign in to comment.