diff --git a/striker-ui/components/Hosts/AnvilHost.tsx b/striker-ui/components/Hosts/AnvilHost.tsx index 1d013707..f69ff2f6 100644 --- a/striker-ui/components/Hosts/AnvilHost.tsx +++ b/striker-ui/components/Hosts/AnvilHost.tsx @@ -75,7 +75,9 @@ const AnvilHost = ({ {hosts && hosts.map( (host): JSX.Element => { - return ( + // Temporary fix: avoid crash when encounter undefined host entry by returning a blank element. + // TODO: figure out why there are undefined host entries. + return host ? ( @@ -153,6 +155,8 @@ const AnvilHost = ({ )} + ) : ( + <> ); }, )}