diff --git a/packages/sections/src/variant/GWASCredibleSets/Body.tsx b/packages/sections/src/variant/GWASCredibleSets/Body.tsx index 0d4cf61bb..a2b4256d6 100644 --- a/packages/sections/src/variant/GWASCredibleSets/Body.tsx +++ b/packages/sections/src/variant/GWASCredibleSets/Body.tsx @@ -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 {study.studyId}; + return {study.id}; }, }, { diff --git a/packages/sections/src/variant/GWASCredibleSets/GWASCredibleSetsQuery.gql b/packages/sections/src/variant/GWASCredibleSets/GWASCredibleSetsQuery.gql index e5497bace..8a1522dfb 100644 --- a/packages/sections/src/variant/GWASCredibleSets/GWASCredibleSetsQuery.gql +++ b/packages/sections/src/variant/GWASCredibleSets/GWASCredibleSetsQuery.gql @@ -21,7 +21,7 @@ query GWASCredibleSetsQuery($variantId: String!, $size: Int!, $index: Int!) { } study { traitFromSource - studyId + id diseases { name id diff --git a/packages/sections/src/variant/QTLCredibleSets/Body.tsx b/packages/sections/src/variant/QTLCredibleSets/Body.tsx index 366ef53f7..639c36822 100644 --- a/packages/sections/src/variant/QTLCredibleSets/Body.tsx +++ b/packages/sections/src/variant/QTLCredibleSets/Body.tsx @@ -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 {study.studyId}; + return {study.id}; }, }, { diff --git a/packages/sections/src/variant/QTLCredibleSets/QTLCredibleSetsQuery.gql b/packages/sections/src/variant/QTLCredibleSets/QTLCredibleSetsQuery.gql index b0549eb5f..afe5f4cec 100644 --- a/packages/sections/src/variant/QTLCredibleSets/QTLCredibleSetsQuery.gql +++ b/packages/sections/src/variant/QTLCredibleSets/QTLCredibleSetsQuery.gql @@ -24,7 +24,7 @@ query QTLCredibleSetsQuery($variantId: String!, $size: Int!, $index: Int!) { alternateAllele } study { - studyId + id studyType condition target {