From a10db4087fed778e8211a8201a643a30ad1f556e Mon Sep 17 00:00:00 2001 From: Aleksander Sklorz Date: Thu, 12 Oct 2023 15:08:11 +0200 Subject: [PATCH] ACS-6085 Set type for validateEmptyName function --- .../library-metadata-tab/library-metadata-form.component.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/projects/aca-content/src/lib/components/info-drawer/library-metadata-tab/library-metadata-form.component.ts b/projects/aca-content/src/lib/components/info-drawer/library-metadata-tab/library-metadata-form.component.ts index c00c3d58c8..f1f6174217 100644 --- a/projects/aca-content/src/lib/components/info-drawer/library-metadata-tab/library-metadata-form.component.ts +++ b/projects/aca-content/src/lib/components/info-drawer/library-metadata-tab/library-metadata-form.component.ts @@ -31,7 +31,8 @@ import { NgForm, FormsModule, ReactiveFormsModule, - FormControl + FormControl, + ValidationErrors } from '@angular/forms'; import { QueriesApi, SiteEntry, SitePaging } from '@alfresco/js-api'; import { Store } from '@ngrx/store'; @@ -225,7 +226,7 @@ export class LibraryMetadataFormComponent implements OnInit, OnChanges, OnDestro .subscribe(handle); } - private validateEmptyName(control: FormControl) { + private validateEmptyName(control: FormControl): ValidationErrors { return control.value.length && !control.value.trim() ? { empty: true } : null; } }