|
|
@ -20,9 +20,9 @@ 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]; |
|
|
|
})} |
|
|
|
})} |
|
|
|
/> |
|
|
|
/> |
|
|
|