diff --git a/src/app/core/discovery/discovery-session.ts b/src/app/core/discovery/discovery-session.ts index f88fb76..ca81ed0 100644 --- a/src/app/core/discovery/discovery-session.ts +++ b/src/app/core/discovery/discovery-session.ts @@ -1,6 +1,6 @@ import { Store, select } from '@ngrx/store'; -import { Host, Port, DiscoveryModeType, Service } from '@overflow/model/discovery'; +import { Host, Port, DiscoveryModeType, Service, Zone } from '@overflow/model/discovery'; import { RPCSubscriber } from '@overflow/commons/ui/decorator/RPCSubscriber'; import { RPCError } from '@overflow/rpc-js'; @@ -44,11 +44,35 @@ export class DiscoverySession { if (null !== discoverySession) { return null; } + + let _zone: Zone = null; + let _host: Host = null; + let _port: Port = null; + + if (null !== zone) { + _zone = { + ...zone, + hostList: null, + }; + } + if (null !== host) { + _host = { + ...host, + portList: null, + }; + } + if (null !== port) { + _port = { + ...port, + serviceList: null, + }; + } + const discoverRequestInfo = { requesterID: memberID, - zone, - host, - port, + zone: _zone, + host: _host, + port: _port, discoverHost, discoverPort, discoverService, diff --git a/src/app/pages/home/home-page.component.html b/src/app/pages/home/home-page.component.html index 6ebc9ae..def5a0d 100644 --- a/src/app/pages/home/home-page.component.html +++ b/src/app/pages/home/home-page.component.html @@ -3,7 +3,10 @@