From 6435a094fc432825300a1c7b9ed6673a3c711dd4 Mon Sep 17 00:00:00 2001 From: Becky Reamy Date: Mon, 18 Mar 2024 11:27:55 -0400 Subject: [PATCH 1/2] KPMP-5203: Fix call to get participant clinical information. Change was made to require participant id and def in hubble-web was not updated --- src/helpers/Api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers/Api.js b/src/helpers/Api.js index 3b442dc..528bac3 100644 --- a/src/helpers/Api.js +++ b/src/helpers/Api.js @@ -67,7 +67,7 @@ export const fetchParticipantExperimentCounts = async (redcapId) => { export const fetchParticipantClinicalDataset = async (redcapId) => { const query = gql` - query participantSummaryDataset($redcapId: String) { + query participantSummaryDataset($redcapId: String!) { participantSummaryDataset(redcapId: $redcapId){ clinicalData } From 25d0c810235c3034c44a223ef68f32f8648ff8bc Mon Sep 17 00:00:00 2001 From: Becky Reamy Date: Mon, 18 Mar 2024 11:32:27 -0400 Subject: [PATCH 2/2] KPMP-5203: Add required to other call --- src/helpers/Api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers/Api.js b/src/helpers/Api.js index 528bac3..c13d9d8 100644 --- a/src/helpers/Api.js +++ b/src/helpers/Api.js @@ -20,7 +20,7 @@ export const getFileLink = async (queryString) => { export const fetchParticipantSummaryDataset = async (redcapId) => { const query = gql` - query participantSummaryDataset($redcapId: String) { + query participantSummaryDataset($redcapId: String!) { participantSummaryDataset(redcapId: $redcapId){ tissueType redcapId