Can you use vue-select to reduce a value to an object with specific properties?
I am trying to do something like this:
<v-select
multiple
:options="locations_ordered"
v-model="state.modal.data.locations"
label="name"
:reduce="loc => {id: loc.id, name: loc.name}"
>
But it's throwing an error at the first colon. What's the right syntax here?