Skip to content

Commit

Permalink
[Platform]: update credible set page to use new study API (#576)
Browse files Browse the repository at this point in the history
  • Loading branch information
gjmcn authored Nov 28, 2024
1 parent 86840af commit d0875d7
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ query CredibleSetPageQuery($studyLocusId: String!) {
alternateAllele
}
study {
studyId
id
studyType
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions packages/sections/src/credibleSet/GWASColoc/Body.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 <Link to={`../study/${studyId}`}>{studyId}</Link>;
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ query GWASColocQuery($studyLocusId: String!) {
otherStudyLocus {
studyLocusId
study {
studyId
id
projectId
traitFromSource
publicationFirstAuthor
Expand Down
4 changes: 2 additions & 2 deletions packages/sections/src/credibleSet/GWASMolQTL/Body.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 <Link to={`../study/${studyId}`}>{studyId}</Link>;
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ query GWASMolQTLColocQuery($studyLocusId: String!) {
otherStudyLocus {
studyLocusId
study {
studyId
id
studyType
projectId
traitFromSource
Expand Down

0 comments on commit d0875d7

Please sign in to comment.