appsmith
appsmith copied to clipboard
[Bug]: async functions in sync fields (path based error)
Is there an existing issue for this?
- [X] I have searched the existing issues
Current Behavior
When an async function is used in if else statement.
The error Async function called in a sync field only shows up, when the block it is used in (if/else) is active.
Steps To Reproduce
- Create a
table. - In
table data, writetrue ? [] : showAlert("") - Notice no error shows up. (despite using showAlert in a sync field)
- Change
truetofalse. And notice the error shows up.
This can be misleading to users when they're developing app's. Sometimes the error will show up sometimes it won't.
Environment
Production
Version
Cloud

Assuming 3% of users use if/else statements within mustache brackets on the property pane
Stats
| Stat | Values |
|---|---|
| Reach | 270 |
| Effort (months) | 0.5 |
should be fixed with #20008