server register values fix

This commit is contained in:
mpetrov 2024-07-25 15:58:48 +03:00
parent d9c5b5efc4
commit 2ff3d0bafc

View File

@ -84,8 +84,8 @@ export class ModbusDataKeysPanelComponent implements OnInit, OnDestroy {
constructor(private fb: UntypedFormBuilder) {} constructor(private fb: UntypedFormBuilder) {}
ngOnInit(): void { ngOnInit(): void {
this.keysListFormArray = this.prepareKeysFormArray(this.values);
this.withFunctionCode = !this.isMaster || (this.keysType !== ModbusValueKey.ATTRIBUTES && this.keysType !== ModbusValueKey.TIMESERIES); this.withFunctionCode = !this.isMaster || (this.keysType !== ModbusValueKey.ATTRIBUTES && this.keysType !== ModbusValueKey.TIMESERIES);
this.keysListFormArray = this.prepareKeysFormArray(this.values);
this.defaultFunctionCodes = this.getDefaultFunctionCodes(); this.defaultFunctionCodes = this.getDefaultFunctionCodes();
} }