Composition API and props

Hi there, I have a question.
I’m getting the data from API by the query. Then I pass the data to the parent component then to the child component.
It looks like this in the child component:

export default {
  name: 'MultiSelectingPositions',

  components: {
    Multiselect,
  },

  props: {
    title: {
      type: String,
      required: true,
    },
    items: {
      type: Array,
      default: () => ([]),
    },
    options: {
      type: Array,
      required: true,
      default: () => ([]),
    },
  },

  setup(props) {
    const { items: positions, options: selectedOptions } = toRefs(props)

    const addTag = newTag => {
      const tag = {
        title: newTag,
      }
      selectedOptions.value.push(tag)
    }

    return {
      positions,
      selectedOptions,
      addTag,
    }
  },
}

My question is:
How can I change the incoming Array (“options” in props) and pass it back to the parent component?
P.s. At the moment the incoming data is rendered, but I get an error when I try to change the data:
image

Thanks in advance :slight_smile: