Collapse not working on next/previous item page.

Hi Jasper the “getCurrentItemIndex” looks helpful. I’ve consoled logged it and I can see the item index working.

However regardless of all the code I’ve used I keep getting this error when I click to the next item page and could this be why the code doesn’t run on the second item page? . " Wix code SDK error: The “src” property cannot be set to “”. It must be a valid image URL starting with “http://”, “https://” or “wix:image://”, or a valid video URL starting with “wix:video://”."

I think this might be the root cause. I think it’s because I have empty cells in my dataset? How do I get around this?