appsmithorg / appsmith

Platform to build admin panels, internal tools, and dashboards. Integrates with 25+ databases and any API.
https://www.appsmith.com
Apache License 2.0
34.63k stars 3.74k forks source link

[Bug]: Object property inference error #27299

Open fguizc opened 1 year ago

fguizc commented 1 year ago

Is there an existing issue for this?

Description

When I use optional chaining, the system defaults to inferring that the property value is undefined, but in reality, the property has a value.

Steps To Reproduce

  1. fetch data and successful
  2. bind value to widget
  3. use ? Optional chaining
  4. show the property is undefined
  5. remove ?
  6. display the correct value
image image

incorrect


image

correct

Public Sample App

No response

Environment

Production

Issue video log

No response

Version

Appsmith Community v1.9.37

Nikhil-Nandagopal commented 1 year ago

@fguizc thank you for reporting this

bharath31 commented 1 year ago

@arunvjn could you please investigate and RCA this?

arunvjn commented 1 year ago

This looks like a bug with peek overlay. cc: @bharath31 @hetunandu