From dc1110e9a13d98ce7d6d0c3e66eac86cb5e9ab84 Mon Sep 17 00:00:00 2001 From: Maksym Dudnik Date: Wed, 24 May 2023 16:54:49 +0300 Subject: [PATCH] fixes --- .../shared/components/device/gateway-service-rpc.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 461a853a56..f4a9655cc0 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 @@ -95,10 +95,10 @@ export class GatewayServiceRPCComponent extends PageComponent implements AfterVi sendCommand() { const formValues = this.commandForm.value; this.ctx.controlApi.sendTwoWayCommand('gateway_'+formValues.command.toLowerCase(), {},formValues.time).subscribe(resp=>{ - this.commandForm.get('result').setValue(resp+""); + this.commandForm.get('result').setValue(JSON.stringify(resp)); },error => { console.log(error); - this.commandForm.get('result').setValue(error.error+""); + this.commandForm.get('result').setValue(JSON.stringify(error.error)); }) }