Browse Source

disable slave fix

pull/11324/head
mpetrov 2 years ago
parent
commit
7cec89e9ef
  1. 4
      ui-ngx/src/app/modules/home/components/widget/lib/gateway/connectors-configuration/modbus/modbus-basic-config/modbus-basic-config.component.ts

4
ui-ngx/src/app/modules/home/components/widget/lib/gateway/connectors-configuration/modbus/modbus-basic-config/modbus-basic-config.component.ts

@ -80,8 +80,8 @@ export class ModbusBasicConfigComponent implements ControlValueAccessor, Validat
this.basicFormGroup.valueChanges this.basicFormGroup.valueChanges
.pipe(takeUntil(this.destroy$)) .pipe(takeUntil(this.destroy$))
.subscribe(value => { .subscribe(({ master, slave }) => {
this.onChange(value); this.onChange({ master, slave: slave ?? {} });
this.onTouched(); this.onTouched();
}); });
} }

Loading…
Cancel
Save