Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Platform]: update credible set page to use new study API #576

Merged
merged 1 commit into from
Nov 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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