Dynamic Image Transformation (Ignoring empty records)

Options
I'm trying to resize my 'users' profile_images when it gets pulled to my front end and am currently able to do so through using a loop and following the documentation/tutorial accordingly.
https://docs.xano.com/xano-features/images

The problem comes when some of my users don't have a profile_image, the loop then breaks since it's unable to find the profile_image of that particular user.

I tried doing an 'if' statement to ignore the empty profile_images but to no avail. Does anyone have any suggestions?[image.png]
Thanks!

Comments

  • Joseph
    Joseph Member
    Options
    Kinda figured it out, my 'if' conditional statement should have been targeting 'profile_image' itself and not the 'profile_image.url'