fix: filter out nodes with no uuid

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

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

Loading…
Cancel
Save