Data binding issue - indexed expression gets corrupted

Wappler Version : 4.0.4
Operating System : mac
Server Model:
Database Type:
Hosting Type:

Expected behavior

After manually adding an indexed selection to an expression, the interface should maintain the index properly

Actual behavior

It rewrites the expression incorrectly when selecting.

How to reproduce

Create an expression that uses an index of an array:

prices.where(stripe_interval, 'month', '==')[0].unit_amount

Attempt to further modify the expression using the interface.

After clicking Select, note the altered code:

prices[0].unit_amount.where(stripe_interval, 'month', '==')

This has been fixed in Wappler 4.0.6

This topic was automatically closed after 47 hours. New replies are no longer allowed.