# Crash with custom javascript from AI

**URL:** <https://community.weweb.io/t/crash-with-custom-javascript-from-ai/17420>\
**Category:** Ask us anything\
**Created:** [March 24, 2025, 4:20pm UTC](https://community.weweb.io/t/crash-with-custom-javascript-from-ai/17420 "2025-03-24T16:20:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![StefanSan](https://avatars.discourse-cdn.com/v4/letter/s/58f4c7/32.png) [@StefanSan](https://community.weweb.io/u/StefanSan)\
**Post date:** [March 24, 2025, 4:20pm UTC](https://community.weweb.io/t/crash-with-custom-javascript-from-ai/17420/1 "2025-03-24T16:20:20Z")

</div>

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](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/6/605fb1cec7c5dcb5f02ad85c76f42d490cbd328f.gif)

---

<div class="post-metadata">

**Author:** ![sam1](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/sam1/32/6724_2.png) [@sam1](https://community.weweb.io/u/sam1)\
**Post date:** [March 25, 2025, 12:30am UTC](https://community.weweb.io/t/crash-with-custom-javascript-from-ai/17420/2 "2025-03-25T00:30:56Z")

</div>

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.
