Skip to content

Commit

Permalink
geneId as multi
Browse files Browse the repository at this point in the history
  • Loading branch information
mbaudis committed Apr 16, 2024
1 parent b7f149b commit 39251a3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/components/searchForm/GeneSymbolSelector.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export function GeneSymbolSelector({
className={"column py-0 mb-3"}
useOptionsAsValue
isClearable
isMulti
/>
)
}
1 change: 1 addition & 0 deletions src/config/beaconSearchParameters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ parameters:
placeholder: MYCN
infoText: The gene symbol (HUGO), e.g. "TP53".
isHidden: true
isMulti: true
aminoacidChange:
label: Aminoacid alteration
placeholder: V600E
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export function mkGeoParams(geoCity, geodistanceKm) {

export function mkGeneParams(gene) {
if (!gene) return null
const geneId = gene.data.symbol ?? []
const geneId = gene.map((gene) => gene.value).join(',')
return { geneId }
}

Expand Down

0 comments on commit 39251a3

Please sign in to comment.