Skip to content

Commit

Permalink
wc: Fix bug in query to get variant notes #TASK-7267 #TASK-6445
Browse files Browse the repository at this point in the history
  • Loading branch information
jmjuanes committed Dec 16, 2024
1 parent 439945b commit cbe8835
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/webcomponents/variant/variant-notes.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export default class VariantNotes extends LitElement {
// 2. get notes where the ID of the note is the variant ID or the gene ID
this.opencgaSession.opencgaClient.studies()
.searchNotes(this.opencgaSession.study.fqn, {
id: `${this.variant.id},${genes.join(",")}`,
id: [this.variant.id, ...genes].filter(Boolean).join(","),
})
.then(response => {
this.notes = response.responses[0].results || [];
Expand Down Expand Up @@ -179,13 +179,13 @@ export default class VariantNotes extends LitElement {

return html`
<div style="">
<div class="py-2">
<div class="mb-4">
<h2>Variant Note</h2>
<div class="px-2">
${this.renderNotes("VARIANT")}
</div>
</div>
<div class="py-2">
<div class="mb-4">
<h2>Gene Notes</h2>
<div class="px-2">
${this.renderNotes("GENE")}
Expand Down

0 comments on commit cbe8835

Please sign in to comment.