Browse Source
Merge pull request #10014 from ArtemDzhereleiko/AD/bug-fix/basic-widget-settings/del-data-key
Fixed console error on deleting data key
pull/10060/head
Igor Kulikov
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
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; |
|
|
|
} |
|
|
|
|