Browse Source

UI: optimize condition check for key filter dialog

pull/10348/head
rusikv 3 years ago
parent
commit
0dc805ab3f
  1. 2
      ui-ngx/src/app/modules/home/components/filter/key-filter-dialog.component.ts

2
ui-ngx/src/app/modules/home/components/filter/key-filter-dialog.component.ts

@ -142,7 +142,7 @@ export class KeyFilterDialogComponent extends
);
}
}
if (valueType === EntityKeyValueType.BOOLEAN && this.isConstantKeyType && this.data.telemetryKeysOnly) {
if (this.data.telemetryKeysOnly && this.isConstantKeyType && valueType === EntityKeyValueType.BOOLEAN) {
this.keyFilterFormGroup.get('value').clearValidators();
this.keyFilterFormGroup.get('value').setValue(isBoolean(value) ? value : false);
this.keyFilterFormGroup.get('value').updateValueAndValidity();

Loading…
Cancel
Save