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'
},
- [Vuejs]-Best way to live database search in Inertia/Vue with Laravel
- [Vuejs]-Spring Authorization Server 1.0.0: javascript error while requesting /oauth2/token
Source:stackexchange.com