Description
Is there an existing issue for this?
- I have searched the existing issues
Current Behavior
OK, this one is a little baffling. With the attached module replicates it every time for me. When I add some JS to the query that includes "utils.CopyToClipboard("Test123") The query will not fire on App Load, as set.
EVEN when I comment out that line, it will still not fire.
Here is my JS for the JS query:
console.log("Hello There");
//utils.copyToClipboard("Test123" );
When I set the query to run on App Load, it will not run (console output is not logged)
If you delete the commented out line, IT WILL RUN and log to console.
I attached the module.
Expected Behavior
When I set a JS query to Load On App Start, I expect it to run when I refresh the browser.
Steps to reproduce
Make an App
Make a new query
Set the query to run on App Start
Add the following JS to the query:
console.log("Hello There");
//utils.copyToClipboard("Test123" );
Show Chrome developer tools,
Run the query manually. It will run and log.
Click F5 on the browser, it will not run
Environment
Self Hosted, 2.7.2
Additional Information
If you change the leave the commented line in, and change "utils.CopyToClipboard" to "utilsX.CopyToClipboard" It will function correctly.
No response