diff --git a/striker-ui/components/Nodes/AnvilNode.tsx b/striker-ui/components/Nodes/AnvilNode.tsx index 8b64e345..69f40244 100644 --- a/striker-ui/components/Nodes/AnvilNode.tsx +++ b/striker-ui/components/Nodes/AnvilNode.tsx @@ -60,32 +60,32 @@ const selectDecorator = ( }; const AnvilNode = ({ - node, + nodes, }: { - node: Array; + nodes: Array; }): JSX.Element => { const classes = useStyles(); return ( <> - {node && - node.map( - (n): JSX.Element => { + {nodes && + nodes.map( + (node): JSX.Element => { return ( - + - +
- + @@ -103,19 +103,19 @@ const AnvilNode = ({ - {n.state !== 'ready' && ( + {node.state !== 'ready' && ( <> - + - + - + diff --git a/striker-ui/components/Nodes/index.tsx b/striker-ui/components/Nodes/index.tsx index 793ee17e..22ecbaa9 100644 --- a/striker-ui/components/Nodes/index.tsx +++ b/striker-ui/components/Nodes/index.tsx @@ -8,14 +8,13 @@ const Nodes = ({ anvil }: { anvil: AnvilListItem }): JSX.Element => { `${process.env.NEXT_PUBLIC_API_URL}/anvils/get_status?anvil_uuid=`, anvil?.anvil_uuid, ); - /* eslint-disable no-param-reassign */ return ( { - return { ...n, ...data?.nodes[index] }; + nodes={anvil?.nodes.map((node, index) => { + return { ...node, ...data?.nodes[index] }; })} />