Skip to content

Commit

Permalink
[Platform]: fix variant study schema (#575)
Browse files Browse the repository at this point in the history
  • Loading branch information
carcruz authored Nov 28, 2024
1 parent 71e37dc commit 86840af
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions packages/sections/src/variant/GWASCredibleSets/Body.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,11 @@ function getColumns({ id, referenceAllele, alternateAllele }: getColumnsType) {
exportValue: ({ study }) => study?.diseases?.map(d => d.name).join(", "),
},
{
id: "study.studyId",
id: "studyId",
label: "Study",
renderCell: ({ study }) => {
if (!study) return naLabel;
return <Link to={`../study/${study.studyId}`}>{study.studyId}</Link>;
return <Link to={`../study/${study.id}`}>{study.id}</Link>;
},
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ query GWASCredibleSetsQuery($variantId: String!, $size: Int!, $index: Int!) {
}
study {
traitFromSource
studyId
id
diseases {
name
id
Expand Down
4 changes: 2 additions & 2 deletions packages/sections/src/variant/QTLCredibleSets/Body.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,11 @@ function getColumns({ id, referenceAllele, alternateAllele }: getColumnsType) {
exportValue: ({ variant }) => variant?.id,
},
{
id: "study.studyId",
id: "studyId",
label: "Study",
renderCell: ({ study }) => {
if (!study) return naLabel;
return <Link to={`../study/${study.studyId}`}>{study.studyId}</Link>;
return <Link to={`../study/${study.id}`}>{study.id}</Link>;
},
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ query QTLCredibleSetsQuery($variantId: String!, $size: Int!, $index: Int!) {
alternateAllele
}
study {
studyId
id
studyType
condition
target {
Expand Down

0 comments on commit 86840af

Please sign in to comment.