Skip to content

Commit

Permalink
[Platform]: Change variant field in the cancer biomarker evidence to …
Browse files Browse the repository at this point in the history
…avoid name clash (#440)
  • Loading branch information
chinmehta authored Aug 19, 2024
1 parent f9573ec commit 887ed22
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,16 @@ function BiomarkersDrawer({ biomarkerName, biomarkers }) {
<FontAwesomeIcon icon={faXmark} />
</IconButton>
</Typography>
{biomarkers.variant ? (
{biomarkers.geneticVariation ? (
<Paper className={classes.paper} variant="outlined">
<Typography variant="subtitle2" paragraph>
Variant:
</Typography>
{biomarkers.variant.map(variant => (
{biomarkers.geneticVariation.map(variant => (
<div key={variant.name} className={classes.biomarkerItem}>
<div>
{variant.name} {variant.variantId ? `(ID: ${variant.variantId})` : null}
{variant.name}{" "}
{variant.geneticVariationId ? `(ID: ${variant.geneticVariationId})` : null}
</div>
{variant.functionalConsequenceId ? (
<Link
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ query CancerBiomarkersQuery($ensemblId: String!, $efoId: String!, $size: Int!) {
diseaseFromSource
biomarkerName
biomarkers {
variant {
variantId: id
geneticVariation {
geneticVariationId: id
name
functionalConsequenceId {
id
Expand Down

0 comments on commit 887ed22

Please sign in to comment.