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.39k stars 3.72k forks source link

[Bug]: Incorrect error is displayed when evaluated value is undefined on ratings widget #11838

Open ramsaptami opened 2 years ago

ramsaptami commented 2 years ago

Is there an existing issue for this?

Description

Incorrect error displayed on a rating widget when default ratings is derived from a binding

image

Steps To Reproduce

  1. Use templates to generate Func CRM app and observe the error as seen in the screenshot above on the ratings widget

Public Sample App

No response

Version

Cloud

dilippitchika commented 2 years ago

@ramsaptami I am unable to fork the app in the release env. Can you please share the app json here?

ramsaptami commented 2 years ago

Hey @dilippitchika I've give you access and forked the app for you to repro the issue https://release.app.appsmith.com/applications/62385770e2e3e942f7cdb921/pages/62385770e2e3e942f7cdb925/edit****

dilippitchika commented 2 years ago

Tried with the same app, i guess data is different now but was not able to reproduce the error.

Screenshot 2022-04-04 at 11 02 23 AM

ramsaptami commented 2 years ago

Hey @dilippitchika you can create an incorrect binding by using something like data_table.selectedItem.first that should put the field into an undefined state. You should see the error then image

dilippitchika commented 2 years ago

@ramsaptami still wasn't able to reproduce it, added screenshots. I ran the query on page load and tried. Not sure what i am doing differently

Screenshot 2022-04-05 at 10 32 36 AM Screenshot 2022-04-05 at 10 32 27 AM

ramsaptami commented 2 years ago

Attaching repro steps on recording @dilippitchika https://www.loom.com/share/bed9b8f099ae4e5da21747ab144f1113