'undefined' type issue for v-model on v-for array element by index #11790
Unanswered
galexrt
asked this question in
Help/Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm getting this type error for when I have an array of elements that are not undefined, e.g.,
Comment[]
, but when I usev-for
on that array via the index (to be able to update the array value).I'm not sure how to fix this error as, e.g., using
v-model="data.comments[idx]!"
after the array index is not recognized.Beta Was this translation helpful? Give feedback.
All reactions