Skip to content

Commit

Permalink
[Platform]: fix credible set listing all variants instead of only lead (
Browse files Browse the repository at this point in the history
#551)

* fix: bug listing only lead variant instead of all variants in credible set

* revert: wrong commit
  • Loading branch information
d0choa authored Nov 22, 2024
1 parent bb469ad commit 6365dac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion packages/sections/src/credibleSet/Variants/Body.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,6 @@ function Body({
}: BodyProps) {
const variables = {
studyLocusId: studyLocusId,
variantIds: [leadVariantId],
};

const request = useQuery(VARIANTS_QUERY, {
Expand Down
4 changes: 2 additions & 2 deletions packages/sections/src/credibleSet/Variants/VariantsQuery.gql
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
query VariantsQuery($studyLocusId: String!, $variantIds: [String!]!) {
query VariantsQuery($studyLocusId: String!) {
credibleSet(studyLocusId: $studyLocusId) {
studyLocusId
locus(variantIds: $variantIds) {
locus {
count
rows {
logBF
Expand Down

0 comments on commit 6365dac

Please sign in to comment.