diff --git a/ui-ngx/src/app/shared/components/device/gateway-connectors.component.ts b/ui-ngx/src/app/shared/components/device/gateway-connectors.component.ts index dd06a9fdb4..9034ced4d5 100644 --- a/ui-ngx/src/app/shared/components/device/gateway-connectors.component.ts +++ b/ui-ngx/src/app/shared/components/device/gateway-connectors.component.ts @@ -347,8 +347,8 @@ export class GatewayConnectorComponent extends PageComponent implements AfterVie if ($event) { $event.stopPropagation(); } + attribute.value = typeof attribute.value === 'string' ? JSON.parse(attribute.value): attribute.value; const params = deepClone(this.ctx.stateController.getStateParams()); - params.connector_logs = attribute; params.targetEntityParamName = "connector_logs"; this.ctx.stateController.openState("connector_logs", params); } @@ -357,10 +357,10 @@ export class GatewayConnectorComponent extends PageComponent implements AfterVie if ($event) { $event.stopPropagation(); } + attribute.value = typeof attribute.value === 'string' ? JSON.parse(attribute.value): attribute.value; const params = deepClone(this.ctx.stateController.getStateParams()); params.connector_rpc = attribute; params.targetEntityParamName = "connector_rpc"; - console.log(attribute, 'connector page') this.ctx.stateController.openState("connector_rpc", params); } diff --git a/ui-ngx/src/app/shared/components/device/gateway-service-rpc.component.ts b/ui-ngx/src/app/shared/components/device/gateway-service-rpc.component.ts index a21727b91d..ab29766fd0 100644 --- a/ui-ngx/src/app/shared/components/device/gateway-service-rpc.component.ts +++ b/ui-ngx/src/app/shared/components/device/gateway-service-rpc.component.ts @@ -91,7 +91,6 @@ export class GatewayServiceRPCComponent extends PageComponent implements AfterVi this.commandForm.get('command').setValue(this.RPCCommands[0]); } else { this.connectorType = this.ctx.stateController.getStateParams().connector_rpc.value.type; - console.log(this.ctx.stateController.getStateParams().connector_rpc, 'rpc page') } }