@@ -86,22 +100,41 @@ const Servers = ({ anvil }: { anvil: AnvilListItem[] }): JSX.Element => {
}
/>
- {server.server_state !== 'shut off' &&
- server.server_state !== 'crashed' &&
- anvil[
- anvil.findIndex((a) => a.anvil_uuid === uuid)
- ].hosts.map(
- (host: AnvilStatusHost): JSX.Element => (
-
-
-
- ),
- )}
+
+ {server.server_state !== 'shut off' &&
+ server.server_state !== 'crashed' &&
+ hostsSanitizer(anvil[anvilIndex].hosts).map(
+ (
+ host: AnvilStatusHost,
+ index: number,
+ ): JSX.Element => (
+ <>
+
+
+
+ {index !==
+ hostsSanitizer(anvil[anvilIndex].hosts)
+ .length -
+ 1 && (
+
+ )}
+ >
+ ),
+ )}
+