UI: Fixed console error can not read null
This commit is contained in:
parent
00e5b9472b
commit
daa2f6ee9b
@ -149,7 +149,7 @@ export class DataKeysPanelComponent implements ControlValueAccessor, OnInit, OnC
|
|||||||
get noKeys(): boolean {
|
get noKeys(): boolean {
|
||||||
let keys: DataKey[] = this.keysListFormGroup.get('keys').value;
|
let keys: DataKey[] = this.keysListFormGroup.get('keys').value;
|
||||||
if (this.hasAdditionalLatestDataKeys) {
|
if (this.hasAdditionalLatestDataKeys) {
|
||||||
keys = keys.filter(k => !(k as any).latest);
|
keys = keys.filter(k => !(k as any)?.latest);
|
||||||
}
|
}
|
||||||
return keys.length === 0;
|
return keys.length === 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user