Dataset not filtering and updating repeater on page

Thanks Jim and Velo-Ninja, it was just that. Thanks so much.

However, the photo count I’m returning to the console log is the full number of photos not the filtered number photos.

I moved the code:

totalPhotos = ds . getTotalCount ();

to after the filter code:

ds . setFilter ( searchFilter );

and the number of photos still doesn’t match the number of records found.

Any ideas?

Cheers

Mark