Skip to content

Commit

Permalink
Switch usage of lodash to native map
Browse files Browse the repository at this point in the history
  • Loading branch information
hweej committed Nov 4, 2024
1 parent 6ea0c60 commit c15e61e
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions src/pages/studyView/resources/FilesAndLinks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,12 @@ const RECORD_LIMIT = 500;

function getResourceDataOfEntireStudy(studyIds: string[]) {
// Fetch resource data for each studyId, then return combined results
const allResources = _(studyIds)
.map(studyId =>
internalClient.getAllStudyResourceDataInStudyPatientSampleUsingGET({
studyId: studyId,
projection: 'DETAILED',
})
)
.value();
const allResources = studyIds.map(studyId =>
internalClient.getAllStudyResourceDataInStudyPatientSampleUsingGET({
studyId: studyId,
projection: 'DETAILED',
})
);

return Promise.all(allResources).then(allResources =>
_(allResources)
Expand Down

0 comments on commit c15e61e

Please sign in to comment.