From 1d8196f9e6e604f4775b5e093f92bdf687f1fcad Mon Sep 17 00:00:00 2001 From: Maksym Dudnik Date: Thu, 25 May 2023 15:07:00 +0300 Subject: [PATCH] fixes --- .../shared/components/device/gateway-connectors.component.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 72c8c409ed..388a5293a4 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 @@ -276,8 +276,7 @@ export class GatewayConnectorComponent extends PageComponent implements AfterVie if (this.connectorForm.disabled) { this.connectorForm.enable(); } - console.log( attribute) - const connector = attribute.value; + const connector = typeof attribute.value === 'string' ? JSON.parse(attribute.value): attribute.value; if (!connector.configuration) { connector.configuration = ""; }