Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

Commit

Permalink
fix: when no check type found
Browse files Browse the repository at this point in the history
  • Loading branch information
eddiejaoude committed Jul 19, 2024
1 parent 799231c commit 8e0c37e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/account/repo/checks/[id]/action.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ export async function performChecks(formData) {
githubResponse: {
connect: { id: githubResponseRepo.id },
},
red: results.summary.error.length,
amber: results.summary.warning.length,
green: results.summary.success.length,
red: results.summary.error?.length || 0,
amber: results.summary.warning?.length || 0,
green: results.summary.success?.length || 0,
healthchecks: results.checks.map((check) => check.id),
data: results.checks,
},
Expand Down

0 comments on commit 8e0c37e

Please sign in to comment.