appsmithorg / appsmith

Platform to build admin panels, internal tools, and dashboards. Integrates with 25+ databases and any API.
https://www.appsmith.com
Apache License 2.0
34.64k stars 3.74k forks source link

[Bug]: undefined error is thrown on page load for function run #26390

Open AnandiKulkarni opened 1 year ago

AnandiKulkarni commented 1 year ago

Is there an existing issue for this?

Description

Add below function on page load and verify on page load error is displayed as - async myFun1 () { return Api1.data.users.map((s)=>{ return { name: s.name, email: s.email }}) },

https://github.com/appsmithorg/appsmith/assets/80756091/2a60ba56-c782-43f8-abc0-d55852947f29

image

Steps To Reproduce

Add above function and add setting as page on load = 'true'. Error is observed

Public Sample App

No response

Environment

Production

Issue video log

No response

Version

cloud

bharath31 commented 1 year ago

looks like a race condition. @ohansFavour could you please investigate?