[Vuejs]-Nuxt wont render true data

0👍

If I understand well, this.updateData.viewDetails is an array, right?

So this.updateData?.viewDetails?.mock_name never exist, you’re trying to access mock_name on an array, not an item of this array. i.e. you forgot the [0].

Just do:

fullName() {
   return this.updateData?.viewDetails?.[0].mock_name || 'This is empty'
},

Leave a comment