fix multipleTagsSelect options

This commit is contained in:
axolotle
2021-06-10 13:10:40 +02:00
parent d23459d969
commit ddc19cd304
@@ -10,10 +10,10 @@
variant="outline-secondary" class="d-block rounded-0" variant="outline-secondary" class="d-block rounded-0"
> >
<b-dropdown-item-button <b-dropdown-item-button
v-for="option in availableOptions" :key="option" v-for="tag in availableOptions" :key="tag.value"
@click="addTag(option)" @click="addTag(tag.text)"
> >
{{ option }} {{ tag.text }}
</b-dropdown-item-button> </b-dropdown-item-button>
</b-dropdown> </b-dropdown>
@@ -43,7 +43,7 @@ export default {
computed: { computed: {
availableOptions () { availableOptions () {
return this.options.filter(opt => this.value.indexOf(opt) === -1) return this.options.filter(opt => this.value.indexOf(opt.text) === -1)
} }
} }
} }