diff --git a/web/src/components/LandingPage.vue b/web/src/components/LandingPage.vue index 136f6541c0443556513bc6397affdb08ae0849fc..326cfcfe1279139870b621cd6aea0e48c0ba2623 100644 --- a/web/src/components/LandingPage.vue +++ b/web/src/components/LandingPage.vue @@ -105,11 +105,11 @@ > <div slot="suggestion-item" - slot-scope="{ suggestion }" + slot-scope="{ suggestion : suggestionItem }" > - <span v-if="suggestion.type === 'protein'">{{ suggestion.gene_name }} ({{ suggestion.id }}): {{ suggestion.species_name }}</span> - <span v-else-if="suggestion.type === 'condensate'">{{ suggestion.id }}: {{ suggestion.species_name }}</span> - <span v-else-if="suggestion.type === 'search'">Search for <b>{{ suggestion.id.replace(/\#/g, '') }}</b></span> + <span v-if="suggestionItem.type === 'protein'">{{ suggestionItem.gene_name }} ({{ suggestionItem.id }}): {{ suggestionItem.species_name }}</span> + <span v-else-if="suggestionItem.type === 'condensate'">{{ suggestionItem.id }}: {{ suggestionItem.species_name }}</span> + <span v-else-if="suggestionItem.type === 'search'">Search for <b>{{ suggestionItem.id.replace(/\#/g, '') }}</b></span> </div> </vue-simple-suggest> </div>