diff --git a/frontend/src/app/core/state/attachments/attachments.service.ts b/frontend/src/app/core/state/attachments/attachments.service.ts index 6aa043a5f4..195e7a2afe 100644 --- a/frontend/src/app/core/state/attachments/attachments.service.ts +++ b/frontend/src/app/core/state/attachments/attachments.service.ts @@ -96,7 +96,7 @@ export class AttachmentsResourceService { * * @param key the collection key */ - all(key:string):Observable { + collection(key:string):Observable { return this.query .select() .pipe( diff --git a/frontend/src/app/features/work-packages/components/wp-tabs/services/wp-tabs/wp-files-count.function.ts b/frontend/src/app/features/work-packages/components/wp-tabs/services/wp-tabs/wp-files-count.function.ts index a70a016961..760ee97820 100644 --- a/frontend/src/app/features/work-packages/components/wp-tabs/services/wp-tabs/wp-files-count.function.ts +++ b/frontend/src/app/features/work-packages/components/wp-tabs/services/wp-tabs/wp-files-count.function.ts @@ -42,7 +42,7 @@ export function workPackageFilesCount( return combineLatest( [ - attachmentService.all(workPackage.$links.attachments.href || ''), + attachmentService.collection(workPackage.$links.attachments.href || ''), fileLinkService.all(workPackage.$links.fileLinks?.href || ''), ], ).pipe(