Skip to content

Commit

Permalink
Adding gene list genes to manually entered genes when searching from …
Browse files Browse the repository at this point in the history
…index page
  • Loading branch information
adkinsrs committed Jun 28, 2024
1 parent 280bd9b commit 8c88ccf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion www/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ document.addEventListener('DOMContentLoaded', () => {
// add the manually-entered genes
// TODO: need to combine selected_genes here to accommodate the case where a gene cart
// chosen but the individual genes removed.
const manuallyEnteredGenes = Array.from(manually_entered_genes);
const manuallyEnteredGenes = Array.from(new Set([...selected_genes, ...manually_entered_genes]));
if (manuallyEnteredGenes.length > 0) {
url.searchParams.append('gene_symbol', manuallyEnteredGenes.join(','));
}
Expand Down

0 comments on commit 8c88ccf

Please sign in to comment.