Error: Cannot read properties of undefined (reading "0")

Hi! I am trying to have my 120 stimuli presented randomly with a rest break occurring exactly in the middle of the study phase. At first I had issues where the JS code was not counting the number of trials correctly, so I attempted to hardcode the trial number. I am still getting the error pictured below. I appreciate any advice!


LINK TO EXPERIMENT CODE: Sign in · GitLab

Hello @savtremblay

check out this Wakefield's Daily Tips - #100 by wakecarter

Best wishes Jens