'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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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