From daa2f6ee9b1a1fcaca7380154cb9c9d68dba5dc6 Mon Sep 17 00:00:00 2001 From: Artem Dzhereleiko Date: Thu, 18 Jan 2024 15:43:38 +0200 Subject: [PATCH] UI: Fixed console error can not read null --- .../widget/config/basic/common/data-keys-panel.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui-ngx/src/app/modules/home/components/widget/config/basic/common/data-keys-panel.component.ts b/ui-ngx/src/app/modules/home/components/widget/config/basic/common/data-keys-panel.component.ts index 55d6f53a32..73a3b8027c 100644 --- a/ui-ngx/src/app/modules/home/components/widget/config/basic/common/data-keys-panel.component.ts +++ b/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; }