Skip to content

Commit

Permalink
Test for variable being defined (#627)
Browse files Browse the repository at this point in the history
  • Loading branch information
marians committed Jul 3, 2019
1 parent fc69f58 commit e5079c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/UI/availability_zones_label.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const Wrapper = styled.abbr`
const AvailabilityZonesLabel = props => {
const { zones } = props;

if (zones.length == 0) {
if (typeof zones === 'undefined' || zones.length == 0) {
return <abbr title='No information available'>n/a</abbr>;
}

Expand Down

0 comments on commit e5079c5

Please sign in to comment.