Crash with custom javascript from AI

Hi,

the AI build me a step of a workflow, that reloads the page, if the user clicks in the menu for the same page.
But there happens crazy things…
you can see it in the video.

what to do? where is my mistake?

thanks for help

weweb-error

This is a funky interaction because the workflow your running will likely try reload the whole page including the editor. so the issue your having with the multiple pages come up wont be in production.