Odd "bug" on repeat with nested

Latest wappler 3.4.1, xamp, php, windows 10.

Not sure if this is a wappler bug or a bug in my code.

I have a page that displays a list of jobs. This is in a repeat. A job can have 0, 1 or many photos. So in SC I have a repeat in query (see image).

So this selects the jobs, then for each job it selects the images (if it has any).

Then in my page I repeat the jobs and then i show the image in its own repeat (to just display 1 image).

And I use a ternary if there is no image I display a nophoto.png image.

This all works, IF the first job in the select has an image, I get 1 image displayed for the job that has an image uplaoded and i get the nophoto displayed for the jobs with no photo.

see image.

if I now go in and remove the photo on the 1st job in teh list you see the result in the next image, it removes images, including the nophoto image for all jobs in the list

my ternary for the image display:

and my App connect window:

I just cant work out why. It all works as it should when the first job has a photo, the image is displayed (just 1 image), if the job has no image I get the nophoto, but, if the top job has no image I get no images for any jobs and no nophoto image

a bug in wappler? Happy to demonstrate on zoom/team viewer etc incase its a wappler bug to help demonstrate/resolve.

Thanks
Darren

Community Page
Last updated: