diff --git a/striker-ui/components/StrikerConfig/ConfigPeersForm.tsx b/striker-ui/components/StrikerConfig/ConfigPeersForm.tsx index d3e8aad7..af08af21 100644 --- a/striker-ui/components/StrikerConfig/ConfigPeersForm.tsx +++ b/striker-ui/components/StrikerConfig/ConfigPeersForm.tsx @@ -47,36 +47,40 @@ const ConfigPeersForm: FC = () => { useState(false); const { isLoading } = periodicFetch<{ - inbound: { - ipAddresses: { + local: { + inbound: { + ipAddress: { + [ipAddress: string]: { + hostUUID: string; + ipAddress: string; + ipAddressUUID: string; + networkLinkNumber: number; + networkNumber: number; + networkType: string; + }; + }; + port: number; + user: string; + }; + peer: { [ipAddress: string]: { hostUUID: string; ipAddress: string; - ipAddressUUID: string; - networkLinkNumber: number; - networkNumber: number; - networkType: string; + isPing: boolean; + port: number; + user: string; }; }; - port: number; - user: string; - }; - peer: { - [ipAddress: string]: { - hostUUID: string; - ipAddress: string; - isPing: boolean; - port: number; - user: string; - }; }; }>(`${API_BASE_URL}/host/connection`, { onSuccess: ({ - inbound: { ipAddresses, port: dbPort, user: dbUser }, - peer, + local: { + inbound: { ipAddress: ipAddressList, port: dbPort, user: dbUser }, + peer, + }, }) => { setInboundConnections( - Object.entries(ipAddresses).reduce( + Object.entries(ipAddressList).reduce( ( previous, [ipAddress, { networkLinkNumber, networkNumber, networkType }], @@ -123,7 +127,7 @@ const ConfigPeersForm: FC = () => { return ( Configure striker peers} - isLoading={isLoading} + loading={isLoading} > @@ -145,8 +149,8 @@ const ConfigPeersForm: FC = () => { {