Dev code behaves differently on production

Hi all,
I have a piece of js function code that gets called when a button is clicked to stop a currently running task. This code works perfectly on my production setup local machine, but when pushed to the production server, nothing happens when clicked. Both setups (my local machine - production and the remote server - production) have erpnext and frappe on the master branch including my custom app all with the same configs, so I’m a bit surprised why this happens.

Any help will be appreciated.


Please share your code

check for the traceback in the browser’s console