Skip to content

Commit

Permalink
Merge pull request #415 from ooni/fix/webconn-missing-testkeys
Browse files Browse the repository at this point in the history
Handle when web connectivity requests data is missing from test_keys
  • Loading branch information
hellais committed Mar 6, 2020
2 parents 73b9140 + 526f603 commit 2ba65e1
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions components/measurement/nettests/WebConnectivity.js
Expand Up @@ -483,9 +483,13 @@ const WebConnectivityDetails = ({
<DetailsBox
title={<FormattedMessage id='Measurement.Details.Websites.HTTP.Heading' />}
content={
<Box width={1}>
{requests.map((request, index) => <RequestResponseContainer key={index} request={request} />)}
</Box>
requests ? (
<Box width={1}>
{requests.map((request, index) => <RequestResponseContainer key={index} request={request} />)}
</Box>
) : (
<FormattedMessage id='Measurement.Details.Websites.HTTP.NoData' />
)
}
/>
</Flex>
Expand Down

0 comments on commit 2ba65e1

Please sign in to comment.