How can i get the actual value for select options? I am getting the options value as [object Object]



  • <q-select
    v-model=“product_type”
    :options=“types”
    option-label=“label”
    option-value=“type_name”
    label=“Product Type”
    emit-value
    map-options
    />

    data () {
        return {
            types: []
        }
    },
    created () {
        this.$axios.get(['http://127.0.0.1:8000/api/lailen-inventory/types'])
            .then(res => {
                this.types = res.data.types
            }).catch(errors => {
                console.log(errors)
            })
    }


  • Finally i realise where i made a mistake! in case anyone stuck in this error, change option:“label” to “category_name”