From c15e61e4bccfb4db216247343fb6c71977b1a528 Mon Sep 17 00:00:00 2001 From: Jason Hwee <1216418+hweej@users.noreply.github.com> Date: Mon, 4 Nov 2024 14:41:47 -0500 Subject: [PATCH] Switch usage of lodash to native map --- src/pages/studyView/resources/FilesAndLinks.tsx | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/pages/studyView/resources/FilesAndLinks.tsx b/src/pages/studyView/resources/FilesAndLinks.tsx index e3f094eedfb..0476590efe8 100644 --- a/src/pages/studyView/resources/FilesAndLinks.tsx +++ b/src/pages/studyView/resources/FilesAndLinks.tsx @@ -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)