Hello, in a repeater I have user reviews. In the collection “Reviews” I have a reference field “member” to the PublicData of the users. The profile picture has the ID “profilePhoto”. I now want to check in the repeater if a user doesn’t have a profile picture yet and then display a placeholder picture “URL”.
According to my understanding, it should go via " itemData . member . profilePhoto === undefined" But it does not work. What am I doing wrong?
My code:
$w ( “#reviewsRepeater” ). onItemReady (( $item , itemData , index ) => {
if ( itemData . member . profilePhoto === undefined ) {
$item ( “#imageMember” ). src = “URL” ;
}
})