[Vuejs]-Vuejs undefined object inside a watched property

0👍

In if (this.modifiedUser.list) { try check if modifiedUser is undefined, please.

Check also if index isn’t undefined after:

var index = this.modifiedUser.list.findIndex(obj => obj.id ==
this.selectedObj);

Hope this helps

Leave a comment