Help

The Community will be temporarily unavailable starting on Friday February 28. We’ll be back as soon as we can! To learn more, check out our Announcements blog post.

Record's commentCount not updating without reload

661 0
cancel
Showing results for 
Search instead for 
Did you mean: 
Sticker_ninja
6 - Interface Innovator
6 - Interface Innovator

I’d like to conditionally render an element depending on whether or not comments exist for a record. I’ve tried several methods but the element will not render/disappear unless I reload the app.

Here is one example:
{record.commentCount > 0 ? <div class="comment-indicator"></div> : ''}

This isn’t the case for rendering elements using getCellValueAsString() where I am able to render based on other record attributes.

Can anyone help me understand what’s happening here?

0 Replies 0