Skip to content

Commit

Permalink
fix: limit seqvar details to gene from result row (#1380) (#1404)
Browse files Browse the repository at this point in the history
* fix: limit seqvar details to gene from result row (#1380)

* prettier
  • Loading branch information
holtgrewe authored Mar 1, 2024
1 parent 59ca963 commit a194921
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion varfish/vueapp/ext/reev-frontend-lib
2 changes: 1 addition & 1 deletion varfish/vueapp/src/varfish/api/mehari.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export class MehariApiClient {
alternative: string,
hgncId?: string,
): Promise<any> {
const hgncSuffix = hgncId ? `&hgnc-id=${hgncId}` : ''
const hgncSuffix = hgncId ? `&hgnc_id=${hgncId}` : ''
const url =
`${this.baseUrl}/seqvars/csq?genome_release=${genomeRelease}&` +
`chromosome=${chromosome}&position=${pos}&reference=${reference}&` +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const navigateBack = () => {
const initStores = async () => {
if (props.seqvar && props.hgncId) {
await Promise.all([
seqvarInfoStore.initialize(props.seqvar),
seqvarInfoStore.initialize(props.seqvar, props.hgncId),
geneInfoStore.initialize(props.hgncId, props.seqvar.genomeBuild),
])
}
Expand Down
10 changes: 9 additions & 1 deletion variants/vueapp/src/views/SeqvarDetails/SeqvarDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,16 @@ const refreshStores = async () => {
throw new Error('No seqvar found')
}
if (variantResultSetStore.resultRow !== undefined) {
console.log(
'xxxx',
seqvar.value,
variantResultSetStore.resultRow.payload!.hgnc_id,
)
await Promise.all([
seqvarInfoStore.initialize(seqvar.value),
seqvarInfoStore.initialize(
seqvar.value,
variantResultSetStore.resultRow.payload!.hgnc_id,
),
geneInfoStore.initialize(
variantResultSetStore.resultRow.payload!.hgnc_id,
seqvar.value.genomeBuild,
Expand Down

0 comments on commit a194921

Please sign in to comment.