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
33.82k stars 3.64k forks source link

[Bug]: Double quotes are getting added in eval for every {{}} added in label and value field #19423

Open AnandiKulkarni opened 1 year ago

AnandiKulkarni commented 1 year ago

Is there an existing issue for this?

Description

Add Treeselect widget and add {{}} for "Label": {{}} and for value {{}}, verify the evaluated value for label it displays as below image

image

Reproducible in production/release

Steps To Reproduce

  1. Add Treeselect widget
  2. Add below code -
> [
>   {
>     "label":{{}},
>     "value":{{}} ,
>     "children": [
>       {
>         "label": {{}},
>         "value": {{}}
>       },
>       {
>         "label": "Light Blue",
>         "value": "LIGHT BLUE"
>       }
>     ]
>   }
> ]
  1. Verify the eval - and verify the value for label

Observation : its displayed as label """{{}}""" - with multiple double quotes

Public Sample App

https://app.appsmith.com/

Issue video log

No response

Version

cloud

rohan-arthur commented 3 weeks ago

please tag @appsmithorg/query-js-pod if you wish to work on this issue.

PrasadMadine commented 20 hours ago

Hello @rohan-arthur , as the issue description mentioned double quotes are being added for the value of the label, but in both app.appsmith.com or release.app.appsmith.com we are getting evaluated value as empty.

image