[Bug]: Editor watch window does not return a response when a function is run on page load #15301
Open
Description
Is there an existing issue for this?
- I have searched the existing issues
Description
Watch window does not return a response when function is run on page load, i.e. the watch window contains the placeholder information instead of expected result even though we see a reponse for successfully executing a function
The expectation is to see the watch window in the same state as we see queries being run on page load.
Steps To Reproduce
- Add a JS object and add following code to the function
export default {
myFun1: async () => {
console.log('function 1')
return "function 1"
}
}
- Set this function to run on page load
- Refresh the page and observe that the watch window has placeholder information instead of expected
function 1
(See screenshot 1) - Run the function
myFun1
directly on the editor and observe that the reponse on the watch window is as expected (See screenshot 2)
Public Sample App
No response
Version
Cloud