appsmith icon indicating copy to clipboard operation
appsmith copied to clipboard

[Bug]: async functions in sync fields (path based error)

Open eco-monk opened this issue 3 years ago • 1 comments

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

  1. Create a table.
  2. In table data, write true ? [] : showAlert("")
  3. Notice no error shows up. (despite using showAlert in a sync field)
  4. Change true to false. And notice the error shows up. Screen Recording 2022-01-12 at 15 32 02

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

eco-monk avatar Jan 12 '22 10:01 eco-monk

image

juandl avatar Jun 28 '22 23:06 juandl

Assuming 3% of users use if/else statements within mustache brackets on the property pane

Stats

Stat Values
Reach 270
Effort (months) 0.5

bharath31 avatar Oct 03 '22 08:10 bharath31

should be fixed with #20008

bharath31 avatar Apr 03 '23 13:04 bharath31