Browse Source

Merge pull request #11009 from maxunbearable/fix/3857-snmp-templates-view

Fixed templates display on opening SNMP connector
pull/11015/head
Igor Kulikov 2 years ago
committed by GitHub
parent
commit
83cc70e3af
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 6
      ui-ngx/src/app/modules/home/components/widget/lib/gateway/gateway-service-rpc-connector.component.ts

6
ui-ngx/src/app/modules/home/components/widget/lib/gateway/gateway-service-rpc-connector.component.ts

@ -387,11 +387,11 @@ 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;
delete value.oid;
break;
case ConnectorType.REQUEST:
this.clearFromArrayByName("httpHeaders");

Loading…
Cancel
Save