Datatable template not using returned value

When there are no votes I want “no votes” to show up in the datatable. Right now ‘undefined’ is showing up.

https://snippet.webix.com/465zjzkr

Hello,

The condition will work, in your case, if opinion will be absent
like this https://snippet.webix.com/46s55hc4

But you have opinion, so you just need to add votes in the condition(so it will check the votes in data) like obj.opinion.votes === undefined
Please check https://snippet.webix.com/4i4ma8xk