From 8c8fca4c27e614e018bb98b62b9a7539fdaa4654 Mon Sep 17 00:00:00 2001 From: mpetrov Date: Thu, 13 Jun 2024 18:18:10 +0300 Subject: [PATCH 1/2] [PROD-3857] [FIX] Fixed templates display on opening SNMP connector --- .../lib/gateway/gateway-service-rpc-connector.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/gateway/gateway-service-rpc-connector.component.ts b/ui-ngx/src/app/modules/home/components/widget/lib/gateway/gateway-service-rpc-connector.component.ts index 2ea5964b84..15ca9ff7a5 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/gateway/gateway-service-rpc-connector.component.ts +++ b/ui-ngx/src/app/modules/home/components/widget/lib/gateway/gateway-service-rpc-connector.component.ts @@ -387,8 +387,8 @@ export class GatewayServiceRPCConnectorComponent implements OnInit, ControlValue value = deepClone(value); switch (this.connectorType) { case ConnectorType.SNMP: - this.clearFromArrayByName("oids"); - value.oids.forEach(value => { + this.clearFromArrayByName("oid"); + value.oid.forEach(value => { this.addSNMPoid(value) }) delete value.oids; From a463e0cdc08d3ce8cc721df9cb342fdbdb6d6ddc Mon Sep 17 00:00:00 2001 From: Max Petrov <93397261+maxunbearable@users.noreply.github.com> Date: Fri, 14 Jun 2024 10:25:00 +0300 Subject: [PATCH 2/2] Update ui-ngx/src/app/modules/home/components/widget/lib/gateway/gateway-service-rpc-connector.component.ts suggestion Co-authored-by: Vladyslav Prykhodko --- .../lib/gateway/gateway-service-rpc-connector.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/gateway/gateway-service-rpc-connector.component.ts b/ui-ngx/src/app/modules/home/components/widget/lib/gateway/gateway-service-rpc-connector.component.ts index 15ca9ff7a5..9838fd2df2 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/gateway/gateway-service-rpc-connector.component.ts +++ b/ui-ngx/src/app/modules/home/components/widget/lib/gateway/gateway-service-rpc-connector.component.ts @@ -391,7 +391,7 @@ export class GatewayServiceRPCConnectorComponent implements OnInit, ControlValue value.oid.forEach(value => { this.addSNMPoid(value) }) - delete value.oids; + delete value.oid; break; case ConnectorType.REQUEST: this.clearFromArrayByName("httpHeaders");