Skip to content

Commit

Permalink
Allow data to be undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-z committed Jul 15, 2024
1 parent ca5f6a0 commit c3cff7b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ import { healthchecksioFetcher, sentryFetcher } from './utils'
import WATcloudLogo from './assets/watcloud-logo'

function processHCData(data: any) {
if (!data) {
return null;
}
return data.checks?.map((check: any) => {
const tags = check.tags.split(' ');

Expand Down

0 comments on commit c3cff7b

Please sign in to comment.