Next and preview list index too large in the end

Hello
I use colintreelistview and I have a next and a preview. When I scroll through my list with next and get to the last one, if I continue I get an error that shows “select list item -list index too large” End application.

I think a return loop is missing.

Did you search the community ? :mag:

https://community.kodular.io/search?q=select%20list%20item%20-list%20index%20too%20large

Also you have to provide a screenshot of your blocks in order to get help from the community

1 Like

here is the message i have:
Select list item: Attempt to get item number 31 of a list of length 30:
the more I press the more he changes
Select list item: Attempt to get item number 32 of a list of length 30 etc…

apparently the more I press next the more it looks for a link that does not exist. How to block the click on the last link or make a loop to return to the first thank you

While clicking next button, you can check if you have reached maximum index of list. And if its true then set your index to ‘0’

Something like this :point_down:
blocks (75)

1 Like

i have not global list ,but i try this and is working for the next but not for preview