Plus symbol erroneously added to server data bindings

Wappler Version : 4.9.1
Operating System : mac
Server Model: node
Database Type:
Hosting Type:

Expected behavior

Valid code should be retained in a server data binding

Actual behavior

Plus symbol is erroneously added sometimes

How to reproduce

Create a server data binding:

cma.bathroom_count_end==10?99:cma.bathroom_count_end

Click Select to enter the binding

Reopen the server data binding and see the invalid plus symbol added:

cma.bathroom_count_end==10+?99:cma.bathroom_count_end

EDIT: Adding parens around the expression solves this. I manually typed in this value, so perhaps the picker takes care of this.

1 Like

Wrap the initial expression in brackets for now, as a workaround

Yep, just found that as well. Thanks.

Bump ++

This is a pain

Does it only happen for the tertiary operator, or for other operations too? :thinking:

Ive only seen it for ternary expressions. Doesn’t mean it won’t happen for something else, I think it’s likely to be where part of an expression evaluates true/false - I can’t think of why that would happen outside of a ternary.

1 Like

Fixed in Wappler 5.1

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