Skip to content

Commit

Permalink
fix: fix crash when network had no IP ranges
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianWieder committed Apr 26, 2022
1 parent d064174 commit 8095d2b
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ function NetworkButton({ network }) {
<Hidden mdDown>
<ListItem className={classes.cidr}>
{network["config"]["ipAssignmentPools"] &&
network["config"]["ipAssignmentPools"][0] &&
getCIDRAddress(
network["config"]["ipAssignmentPools"][0]["ipRangeStart"],
network["config"]["ipAssignmentPools"][0]["ipRangeEnd"]
Expand Down

0 comments on commit 8095d2b

Please sign in to comment.