Note component in Modal column of the table - how to get count of comments per record?

Hi Retool Community!

I use Note component inside Modal column (which I called Comments on the screenshot) of the table to comment the records of the table.
I need a way to show to a user how many comments each record has.

I looked at the Note component structure in the left sidebar, but it didn't help. Looks like it contains only the last data fetched from Retool server (for the last record I've opened the comments for)

Thanks!

Hey @egor! The Note component has a .comments property - it’s an array with one element (object) per comment. Using note.comments.length should do the trick?