Skip to content

Commit

Permalink
fix: allow aggregated lineage suggestions to be selected (#700)
Browse files Browse the repository at this point in the history
  • Loading branch information
leandrocollares authored Nov 10, 2023
1 parent e196507 commit 18215ca
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion web/src/components/GrSuggestedLineages.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@
getHighestSignificanceLineagesByLocation(location, numberOfLineages)
.then((response) => {
const apiData = response.data.hits;
suggestedLineages.value = apiData.map(element => element.lin);
suggestedLineages.value = apiData.map((element) => {
return element.lin.includes('+') ? (element.lin.replace('+', '*')) :
element.lin;
});
const initialLineageSelection = suggestedLineages.value[0];
emit('initial-suggestion-selected', initialLineageSelection);
})
Expand Down

0 comments on commit 18215ca

Please sign in to comment.