Return 'No Records' on Smart HasMany

Hey Forest,

When writing out a smart hasMany relationship, is there a quick method to return the ‘No records’ page such as returning null or something similar? I’d like to show that message based on certain conditions in some of our relationships.

Thank you!

Hey @Arda_Yurdakul !
Have you tried returning an empty array in those cases ?

Hey @Nicolas_Sailly,

Yes and that didn’t work unfortunately. Just loads forever. :frowning:

Hello @Arda_Yurdakul ,

Can you send me the code of this smartRelationship please? :pray: I will try to reproduce your problem on my side.

Kind regards,

Florian