Skip to content

Commit

Permalink
fix(lease): safely render lease ips
Browse files Browse the repository at this point in the history
closes #210
  • Loading branch information
ygrishajev committed May 23, 2024
1 parent 3aa89d1 commit ee430ef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion deploy-web/src/components/deployments/LeaseRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,8 @@ export const LeaseRow = React.forwardRef<AcceptRefType, Props>(({ lease, setActi
<LabelValueOld label="IP(s):" />
<ul className="mt-2 space-y-2">
{servicesNames
.flatMap(n => leaseStatus.ips[n])
.flatMap(service => leaseStatus.ips[service])
.filter(Boolean)
.map((ip, i) => (
<li key={`${ip.IP}${ip.ExternalPort}`} className="flex items-center">
<Link className="inline-flex items-center space-x-2 text-sm" href={`http://${ip.IP}:${ip.ExternalPort}`} target="_blank">
Expand Down

0 comments on commit ee430ef

Please sign in to comment.