[Vuejs]-How do update a value in a list item if another value in the same list item is true?

0👍

As far as I can see, selectedFields is a method. So you need to call it to get the fields. Something like this:

this.selectedFields().map(el => ({...el, showCheckMark: Boolean(el.message)}))

Made a basic example: Vue SFC Playground

Leave a comment