UI: Fixed bug multiple input widget: when activate settings update all values not save hidden keys

This commit is contained in:
Vladyslav_Prykhodko 2021-07-27 10:57:34 +03:00 committed by Andrew Shvayka
parent f1bb232d24
commit 733430e9d1

View File

@ -495,8 +495,8 @@ export class MultipleInputWidgetComponent extends PageComponent implements OnIni
const serverAttributes: AttributeData[] = []; const serverAttributes: AttributeData[] = [];
const sharedAttributes: AttributeData[] = []; const sharedAttributes: AttributeData[] = [];
const telemetry: AttributeData[] = []; const telemetry: AttributeData[] = [];
for (const key of this.visibleKeys(toSave)) { for (const key of toSave.keys) {
const currentValue = this.multipleInputFormGroup.get(key.formId).value; const currentValue = key.settings.dataKeyHidden ? key.value : this.multipleInputFormGroup.get(key.formId).value;
if (!isEqual(currentValue, key.value) || this.settings.updateAllValues) { if (!isEqual(currentValue, key.value) || this.settings.updateAllValues) {
const attribute: AttributeData = { const attribute: AttributeData = {
key: key.name, key: key.name,