Skip to content

Commit

Permalink
make readable
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard87 committed Aug 27, 2024
1 parent 3de4fc8 commit c62637e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/models/component.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ func getComponentStatus(component radixv1.RadixCommonDeployComponent, kd *appsv1
replicas = pointers.Val(kd.Spec.Replicas)
}

if replicas == 0 && component.GetType() == radixv1.RadixComponentTypeJob {
if component.GetType() == radixv1.RadixComponentTypeJob && replicas == 0 {
return deploymentModels.StoppedComponent
}

Expand Down

0 comments on commit c62637e

Please sign in to comment.