Skip to content
Snippets Groups Projects
Commit f7d725c7 authored by moon's avatar moon
Browse files

Changed slot-scope value name in order to avoid duplication in component's data

parent 845cc3fe
No related branches found
No related tags found
No related merge requests found
......@@ -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>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment