Browse Source

UI: Fixed console error can not read null

pull/10014/head
Artem Dzhereleiko 3 years ago
parent
commit
daa2f6ee9b
  1. 2
      ui-ngx/src/app/modules/home/components/widget/config/basic/common/data-keys-panel.component.ts

2
ui-ngx/src/app/modules/home/components/widget/config/basic/common/data-keys-panel.component.ts

@ -149,7 +149,7 @@ export class DataKeysPanelComponent implements ControlValueAccessor, OnInit, OnC
get noKeys(): boolean {
let keys: DataKey[] = this.keysListFormGroup.get('keys').value;
if (this.hasAdditionalLatestDataKeys) {
keys = keys.filter(k => !(k as any).latest);
keys = keys.filter(k => !(k as any)?.latest);
}
return keys.length === 0;
}

Loading…
Cancel
Save