Merge pull request #71 from BrianWieder/main

fix: fix crash when network had no IP ranges
This commit is contained in:
dec0dOS 2022-04-26 13:05:47 +04:00 committed by GitHub
commit c8fc67a3d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"]