Browse Source

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

pull/4985/head
Vladyslav_Prykhodko 5 years ago
committed by Andrew Shvayka
parent
commit
733430e9d1
  1. 4
      ui-ngx/src/app/modules/home/components/widget/lib/multiple-input-widget.component.ts

4
ui-ngx/src/app/modules/home/components/widget/lib/multiple-input-widget.component.ts

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

Loading…
Cancel
Save