Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { getSortedContributorsByPermissions } from '@osf/shared/helpers/sort-contributors-by-permissions';
import { ResourceModel } from '@shared/models/search/resource.model';

export function mapCreators(project: ResourceModel, currentInstitutionId: string) {

Check failure on line 4 in src/app/features/admin-institutions/mappers/creators.mapper.ts

View workflow job for this annotation

GitHub Actions / lint

'currentInstitutionId' is defined but never used. Allowed unused args must match /^_/u
const creatorsRoles = project.qualifiedAttribution.map((qa) => {
let role;
if (qa.hadRole.includes('admin')) {
Expand All @@ -18,7 +18,6 @@
});

return getSortedContributorsByPermissions(project)
?.filter((creator) => creator.affiliationsAbsoluteUrl.includes(currentInstitutionId))
?.map((creator) => {
const name = creator.name.trim();
const role = creatorsRoles.find((cr) => cr.id === creator.absoluteUrl)!.role;
Expand Down
Loading