Error when trying to run JS from a Flow (on success of form) - "Uncaught (in promise) TypeError: Cannot read property ‘apply’ of undefined"

@patrick - I’m getting another ‘undefined’ issue (I’ll report this as a separate bug here) when trying to use Google Autocomplete again (a new implementation - it’s working on older pages).

Page is rendered fine with dynamic picker.
I choose input and click ‘Make Google Places Autocomplete’
Then screen goes completely blank and I receive this error in Wappler UI:

All Google JS scripts are in the layout page header, and have/are working fine on other pages. It’s failing on a new implementation of Google Autocomplete.

Seemingly related as I’m getting another not defined error as per above.

Really need a fix for these items.