From 3e73197304ba71d16f5ff2c32f29becf7eab229b Mon Sep 17 00:00:00 2001 From: Kyrylo Petrov Date: Wed, 2 Jul 2025 17:58:01 +0300 Subject: [PATCH] fix(main): minor merge fixes --- src/app/features/collections/services/collections.service.ts | 4 ++-- src/app/features/my-projects/services/my-projects.service.ts | 1 + src/app/features/my-projects/store/my-projects.state.ts | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) 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({