Seems like this issue from 5.0 is back in the latest version of Wappler.
Bump
Still an issue on the latest version
Could you give a sample of the code giving you errors?
I’m out and about and replying on my phone so don’t have code to hand. If you add an inline flow to a button click and use runJS with a parameter, you should see what we’re talking about
If you use runJS with a parameter that features a data binding and a non data binding (e.g, text or something else), it'll always add an '. If the data binding is first, it'll be at the start. If it's last, it'll be at the end.
Quick example:
Saving will produce the invalid run:
When it should instead be:
Bump
Giving this a bump as it still happens.
I used the UI to add a Dynamic Click, chose to use inline flow, added the runJS step. When adding arguments to the runJS you get the rogue quote at the start:
<button class="btn btn-warning btn-sm" id="btn_salesdownload" dmx-on:click="run({runJS:{outputType:'text',function:'downloadCsvFromJson',args:['`sc_sales.data.q_sales`,'filename']}})">Download CSV</button>
It has to manually be corrected as it is no longer valid with the UI throwing an unexpected character error when trying to edit the inline flow
It seems to be where there is a single DMX expression picked as an argument and strings as the other argument(s). The strings are typed directly into the argument input (not using the lightning bolt picker)
