Hi, I am making a time blocking app, where I filter a list of time-blocked sessions into a custom state.
There is a countdown to the start of the next session in the list.
When the countdown hits zero, it triggers a workflow:
- make changes to the session data, including setting the session’s end time to the current time
- reset the countdown
- restart the countdown, based on the value of the custom state containing the list of sessions
The start of the workflow should only be changing the first session:

And there are no instructions in the workflow to make changes to the custom state.
However, when the countdown hits zero, the countdown restarts, counting down to the next session, but the rest of the page says that that item is empty. If I then refresh the page, the countdown also stops working.
It seems that the workflow is updating the end time of all future sessions to now, even though the only session this should be happening to is the first one.
What am I doing wrong??!

