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 d897b9f5a2..0f14836eae 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 @@ -146,10 +146,10 @@ export class LibraryMetadataFormComponent implements OnInit, OnChanges, OnDestro }); this.canUpdateLibrary = this.node?.entry?.role === 'SiteManager'; this.visibilityLabel = this.libraryType.find((type) => type.value === this.form.controls['visibility'].value).label; - this.handleUpdatingEvents(SnackbarActionTypes.Info, 'LIBRARY.SUCCESS.LIBRARY_UPDATED', () => + this.handleUpdatingEvent(SnackbarActionTypes.Info, 'LIBRARY.SUCCESS.LIBRARY_UPDATED', () => Object.assign(this.node.entry, this.form.value) ); - this.handleUpdatingEvents(SnackbarActionTypes.Error, 'LIBRARY.ERRORS.LIBRARY_UPDATE_ERROR', () => this.form.markAsDirty()); + this.handleUpdatingEvent(SnackbarActionTypes.Error, 'LIBRARY.ERRORS.LIBRARY_UPDATE_ERROR', () => this.form.markAsDirty()); } ngOnDestroy() { @@ -190,7 +190,7 @@ export class LibraryMetadataFormComponent implements OnInit, OnChanges, OnDestro ); } - private handleUpdatingEvents(actionType: SnackbarActionTypes, payload: string, handle: () => void): void { + private handleUpdatingEvent(actionType: SnackbarActionTypes, payload: string, handle: () => void): void { this.actions$ .pipe( ofType(actionType),