I created a field group (question_topics) in prismic with a single key-text field (topic) inside of it for adding as many topics as I need. I have been able to get the content on to my site successfully, but I don't know how I can get the field data in the :items prop of a v-select element.
Typically with group fields I have used them in instances where I am looping through each field to render the data to do stuff like this...
<v-expansion-panel v-for="(item, index) in fields.question_topics" :key="index">
<v-expansion-panel-content>
<template slot="header">
<v-card-title class="py-4">
<h4>{{item.topic}}</h4>
</v-card-title>
</template>
</v-expansion-panel-content>
</v-expansion-panel>
But now I'm trying to do something like this...
<v-select
:items="fields.question_topics"
>
But doing this populates the v-select field with [object OBJECT] for each field I've entered into my dashboard, not the actual field values.
<v-select
:items="fields.question_topics.topic"
>
This doesn't create any data at all.
I can just render out the field {{fields.question_topics}} and I get this array:
[{ "topic": "First topic" }, { "topic": "Second topic" }, { "topic": "Third topic" }]
Is anyone able to explain how to get these topic values into the v-select element :items prop?