Dynamically setting a label on a relationship
Hi guys,
I have a table column which shows related sites. It outputs really nicely when doing this:
However, I want to conditionally show a message if no sites have been connected yet. When trying to do this, I get the following error message:
Attempt to read property "sites" on null
Any ideas what I'm doing wrong here?1 Reply
Solution
Nevermind, it works fine when I use html() instead of label()