I have a manyTomany field (panelists) within my response that, when displayed, the values are inside brackets. i couldn't find a way to retract only the values/remove the brackets as I do the display with a v-for.
step-program is a component I created in my Vue project:
<step-program
v-for="(item, index) in programs" :item="program" :key="index"
:start_time="item.start_time| formatDate"
:end_time="item.end_time| formatDate"
:topic ="item.topic"
:panelNames="item.panelists">
</step-program>
Here is the axios code :
mounted() {
axios.get("http://127.0.0.1:8000/api/programs/")
.then(response => {
this.programs = response.data
})
.catch(error => {
console.log(error)
})
This is the result I get : panelists result in brackets
Thanks!!