[Vuejs]-Cant access to JSON Object in a DataTable (JavaScript)(vue.js)

0๐Ÿ‘

โœ…

{{props.item.UserStatuses.sendEmail}}

"UserStatuses": [] is an array but trying to access it as object , and here it was not sure that it will always get values , so as solution to this :

{{ props.item.UserStatuses.length ? props.item.UserStatuses[0].sendEmail : '' }}

Leave a comment