diff --git a/src/lib/features/project-status/project-status-service.ts b/src/lib/features/project-status/project-status-service.ts index ae45732625cd..763c71a558ad 100644 --- a/src/lib/features/project-status/project-status-service.ts +++ b/src/lib/features/project-status/project-status-service.ts @@ -38,17 +38,7 @@ export class ProjectStatusService { ] = await Promise.all([ this.projectStore.getConnectedEnvironmentCountForProject(projectId), this.projectStore.getMembersCountByProject(projectId), - this.apiTokenStore - .getAll() - .then( - (tokens) => - tokens.filter( - (token) => - token.project === projectId || - token.projects.includes(projectId), - ).length, - ), - + this.apiTokenStore.countProjectTokens(projectId), this.segmentStore.getProjectSegmentCount(projectId), this.eventStore.getProjectRecentEventActivity(projectId), ]);