fix: filter out nodes with no uuid

main
Josue 4 years ago committed by Tsu-ba-me
parent e8693e7ef8
commit 1852c68454
  1. 6
      striker-ui/components/Hosts/index.tsx

@ -20,9 +20,9 @@ const Hosts = ({ anvil }: { anvil: AnvilListItem[] }): JSX.Element => {
<>
{anvil.findIndex((a) => a.anvil_uuid === uuid) !== -1 && data && (
<AnvilHost
hosts={anvil[
anvil.findIndex((a) => a.anvil_uuid === uuid)
].hosts.map((host, index) => {
hosts={anvil[anvil.findIndex((a) => a.anvil_uuid === uuid)].hosts
.filter((host) => host.host_uuid)
.map((host, index) => {
return data.hosts[index];
})}
/>

Loading…
Cancel
Save