Browse Source

fixes

pull/8337/head
Maksym Dudnik 3 years ago
parent
commit
1d8196f9e6
  1. 3
      ui-ngx/src/app/shared/components/device/gateway-connectors.component.ts

3
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) { if (this.connectorForm.disabled) {
this.connectorForm.enable(); this.connectorForm.enable();
} }
console.log( attribute) const connector = typeof attribute.value === 'string' ? JSON.parse(attribute.value): attribute.value;
const connector = attribute.value;
if (!connector.configuration) { if (!connector.configuration) {
connector.configuration = ""; connector.configuration = "";
} }

Loading…
Cancel
Save