diff --git a/src/app/features/collections/services/collections.service.ts b/src/app/features/collections/services/collections.service.ts index b47fdcc75..ddf0091fa 100644 --- a/src/app/features/collections/services/collections.service.ts +++ b/src/app/features/collections/services/collections.service.ts @@ -169,7 +169,7 @@ export class CollectionsService { ], }; - return this.#jsonApiService.post(url, payload); + return this.jsonApiService.post(url, payload); } removeRegistrationFromBookmarks(bookmarksId: string, registryId: string): Observable { @@ -183,6 +183,6 @@ export class CollectionsService { ], }; - return this.#jsonApiService.delete(url, payload); + return this.jsonApiService.delete(url, payload); } } diff --git a/src/app/features/my-projects/services/my-projects.service.ts b/src/app/features/my-projects/services/my-projects.service.ts index 1f9c6b8a7..c05e86d32 100644 --- a/src/app/features/my-projects/services/my-projects.service.ts +++ b/src/app/features/my-projects/services/my-projects.service.ts @@ -5,6 +5,7 @@ import { inject, Injectable } from '@angular/core'; import { JsonApiResponse } from '@core/models'; import { JsonApiService } from '@osf/core/services'; +import { SparseCollectionsResponseJsonApi } from '@osf/features/collections/models'; import { ResourceType, SortOrder } from '@osf/shared/enums'; import { NodeResponseModel, UpdateNodeRequestModel } from '@shared/models'; diff --git a/src/app/features/my-projects/store/my-projects.state.ts b/src/app/features/my-projects/store/my-projects.state.ts index aa404737f..c45742f69 100644 --- a/src/app/features/my-projects/store/my-projects.state.ts +++ b/src/app/features/my-projects/store/my-projects.state.ts @@ -151,7 +151,7 @@ export class MyProjectsState { totalBookmarks: res.links.meta.total, }); }), - catchError((error) => this.handleError(ctx, ['bookmarks', 'totalBookmarks'], error)) + catchError((error) => this.handleError(ctx, 'bookmarks', error)) ); } else { return forkJoin({