lowcoder-org / lowcoder

🔥 🔥 🔥 The Open Source Retool, Tooljet and Appsmith Alternative
https://www.lowcoder.cloud/
GNU Affero General Public License v3.0
882 stars 184 forks source link

[Bug]: On a Module inside List Component, Newly added code gets removed from "Run Javascript" Action after page refresh #1135

Open adnanqaops opened 2 months ago

adnanqaops commented 2 months ago

Is there an existing issue for this?

Current Behavior

This is a very strange behaviour where I have a List component inside my App. In that List component, I added a Module in it. In the Event Handler, I added some JS code and that got saved. I added some more code in it, and refreshed the page, but the newly added code got removed and didn't save.

Expected Behavior

JS code should not get removed from the Module Event Handler.

Steps to reproduce

App in which I added the code : https://app.lowcoder.cloud/apps/66d1be800390b00771b3b946/edit Module : https://app.lowcoder.cloud/apps/66d0ac6d0390b00771b3afe8/edit

Environment

Production

Additional Information

No response

FalkWolsky commented 1 month ago

It depends on multiple factors. Time and API Calls can be one factor. Did you publish the app - and then the code disappeared - or did you just refreshed the page?

adnanqaops commented 1 month ago

It didn't depend upon the "Publishing" of the App. The code disappeared after page refresh with or without "Publishing" the app.