Skip to content

Commit

Permalink
Merge pull request #1964 from opengovern/fix-web-ui
Browse files Browse the repository at this point in the history
fix: fix assignment APIs'
  • Loading branch information
artaasadi authored Nov 13, 2024
2 parents aa388a0 + 8bcd813 commit bb2a8c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/compliance/http_routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -5736,7 +5736,7 @@ func (h *HttpHandler) GetBenchmarkAssignments(echoCtx echo.Context) error {
var status api.BenchmarkAssignmentStatus
if benchmark.AutoAssign {
status = api.BenchmarkAssignmentStatusAutoEnable
} else if len(results) > 0 {
} else if assignedCount > 0 {
status = api.BenchmarkAssignmentStatusEnabled
} else {
status = api.BenchmarkAssignmentStatusDisabled
Expand Down

0 comments on commit bb2a8c7

Please sign in to comment.