From e00a63915aeebe92e69497eabad447344e6ed1ac Mon Sep 17 00:00:00 2001 From: snoop Date: Fri, 15 Sep 2017 19:36:40 +0900 Subject: [PATCH] fixed address split --- .../react/components/NoauthProbeList.tsx | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/ts/@overflow/noauthprobe/react/components/NoauthProbeList.tsx b/src/ts/@overflow/noauthprobe/react/components/NoauthProbeList.tsx index 9fd0a72..d8f3c8d 100644 --- a/src/ts/@overflow/noauthprobe/react/components/NoauthProbeList.tsx +++ b/src/ts/@overflow/noauthprobe/react/components/NoauthProbeList.tsx @@ -208,11 +208,15 @@ export class NoauthProbeList extends React.Component { this.props.noauthList.map((probe: NoAuthProbe, index: number) => { - // let map: any = JSON.parse(probe.description); + let map: any = JSON.parse(probe.description); - // let addressArray: string[] = map.network.address.split('|', 2); - // let ipv4: string = addressArray[0]; - // let ipv6: string = addressArray[1]; + let addressArray: string[] = map.network.address.split('|', 2); + let ipv4: string = addressArray[0]; + let ipv6: string = addressArray[1]; + map.network.ipv4 = ipv4; + map.network.ipv6 = ipv6; + + delete map.network.address; elem.push( @@ -223,7 +227,7 @@ export class NoauthProbeList extends React.Component { {/*ipv4 - {ipv4}
ipv6 - {ipv6}
{map.network.macAddress} {map.host.name}*/} - + {Utils.date2date(probe.createDate)} {probe.apiKey}
,