From d0875d750a79a3801d7fb20a9403e5430be61e58 Mon Sep 17 00:00:00 2001 From: Graham McNeill Date: Thu, 28 Nov 2024 19:34:10 +0000 Subject: [PATCH] [Platform]: update credible set page to use new study API (#576) --- apps/platform/src/pages/CredibleSetPage/CredibleSetPage.gql | 2 +- apps/platform/src/pages/CredibleSetPage/CredibleSetPage.tsx | 2 +- packages/sections/src/credibleSet/GWASColoc/Body.tsx | 4 ++-- .../sections/src/credibleSet/GWASColoc/GWASColocQuery.gql | 2 +- packages/sections/src/credibleSet/GWASMolQTL/Body.tsx | 4 ++-- .../src/credibleSet/GWASMolQTL/GWASMolQTLColocQuery.gql | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/apps/platform/src/pages/CredibleSetPage/CredibleSetPage.gql b/apps/platform/src/pages/CredibleSetPage/CredibleSetPage.gql index b8fd51ee9..889be331a 100644 --- a/apps/platform/src/pages/CredibleSetPage/CredibleSetPage.gql +++ b/apps/platform/src/pages/CredibleSetPage/CredibleSetPage.gql @@ -6,7 +6,7 @@ query CredibleSetPageQuery($studyLocusId: String!) { alternateAllele } study { - studyId + id studyType } } diff --git a/apps/platform/src/pages/CredibleSetPage/CredibleSetPage.tsx b/apps/platform/src/pages/CredibleSetPage/CredibleSetPage.tsx index 7ac373d22..5202289f3 100644 --- a/apps/platform/src/pages/CredibleSetPage/CredibleSetPage.tsx +++ b/apps/platform/src/pages/CredibleSetPage/CredibleSetPage.tsx @@ -24,7 +24,7 @@ function CredibleSetPage() { const variantId = credibleSet?.variant?.id; const referenceAllele = credibleSet?.variant?.referenceAllele; const alternateAllele = credibleSet?.variant?.alternateAllele; - const studyId = credibleSet?.study?.studyId; + const studyId = credibleSet?.study?.id; const studyType = credibleSet?.study?.studyType; if (!studyType) return null; diff --git a/packages/sections/src/credibleSet/GWASColoc/Body.tsx b/packages/sections/src/credibleSet/GWASColoc/Body.tsx index 245dbd98a..fd9cf2969 100644 --- a/packages/sections/src/credibleSet/GWASColoc/Body.tsx +++ b/packages/sections/src/credibleSet/GWASColoc/Body.tsx @@ -31,10 +31,10 @@ const columns = [ }, }, { - id: "otherStudyLocus.study.studyId", + id: "otherStudyLocus.study.id", label: "Study", renderCell: ({ otherStudyLocus }) => { - const studyId = otherStudyLocus?.study?.studyId; + const studyId = otherStudyLocus?.study?.id; if (!studyId) return naLabel; return {studyId}; }, diff --git a/packages/sections/src/credibleSet/GWASColoc/GWASColocQuery.gql b/packages/sections/src/credibleSet/GWASColoc/GWASColocQuery.gql index 2f90a779e..36f83ba95 100644 --- a/packages/sections/src/credibleSet/GWASColoc/GWASColocQuery.gql +++ b/packages/sections/src/credibleSet/GWASColoc/GWASColocQuery.gql @@ -4,7 +4,7 @@ query GWASColocQuery($studyLocusId: String!) { otherStudyLocus { studyLocusId study { - studyId + id projectId traitFromSource publicationFirstAuthor diff --git a/packages/sections/src/credibleSet/GWASMolQTL/Body.tsx b/packages/sections/src/credibleSet/GWASMolQTL/Body.tsx index 534014c9f..5d97bf02a 100644 --- a/packages/sections/src/credibleSet/GWASMolQTL/Body.tsx +++ b/packages/sections/src/credibleSet/GWASMolQTL/Body.tsx @@ -31,10 +31,10 @@ const columns = [ }, }, { - id: "otherStudyLocus.study.studyId", + id: "otherStudyLocus.study.id", label: "Study", renderCell: ({ otherStudyLocus }) => { - const studyId = otherStudyLocus?.study?.studyId; + const studyId = otherStudyLocus?.study?.id; if (!studyId) return naLabel; return {studyId}; }, diff --git a/packages/sections/src/credibleSet/GWASMolQTL/GWASMolQTLColocQuery.gql b/packages/sections/src/credibleSet/GWASMolQTL/GWASMolQTLColocQuery.gql index c7ef295fa..6ae8a0b20 100644 --- a/packages/sections/src/credibleSet/GWASMolQTL/GWASMolQTLColocQuery.gql +++ b/packages/sections/src/credibleSet/GWASMolQTL/GWASMolQTLColocQuery.gql @@ -4,7 +4,7 @@ query GWASMolQTLColocQuery($studyLocusId: String!) { otherStudyLocus { studyLocusId study { - studyId + id studyType projectId traitFromSource