From f8aff8107250a767661f3ee83c1450e4ef8e710d Mon Sep 17 00:00:00 2001
From: Jason Hwee <1216418+hweej@users.noreply.github.com>
Date: Wed, 30 Oct 2024 14:12:20 -0400
Subject: [PATCH] Exchange string for actual property for typesafety.

---
 src/pages/studyView/resources/FilesAndLinks.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/pages/studyView/resources/FilesAndLinks.tsx b/src/pages/studyView/resources/FilesAndLinks.tsx
index 7ac0dfee1df..2f9ddb75404 100644
--- a/src/pages/studyView/resources/FilesAndLinks.tsx
+++ b/src/pages/studyView/resources/FilesAndLinks.tsx
@@ -146,7 +146,7 @@ async function fetchFilesLinksData(
         .filter(resource =>
             selectedIds.has(resource.sampleId || resource.patientId)
         )
-        .groupBy('patientId')
+        .groupBy(r => r.patientId)
         .value();
 
     // we create objects with the necessary properties for each resource