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]: selectedOptionValue being assigned as selectedOptionLabel #30074

Open thebadking opened 10 months ago

thebadking commented 10 months ago

Is there an existing issue for this?

Description

image image

as you can see the object from the dropdown "form_select_dropdown" is generating the values wrongly as the data being loaded to it has values of 1 and 2 as you can see from the query that is being loaded to that module bellow

image image

for some reason the value is being set the same as the label

Steps To Reproduce

create a query as such SELECT form_name as label, form_id as value FROM public."forms"

load it into a dropdown module and try to access that object property "selectedOptionValue" to see if it matches the value or the label

Public Sample App

No response

Environment

Production

Issue video log

No response

Version

Cloud

Front logo Front conversations

sbalaji1192 commented 9 months ago

@thebadking We are working on a fix. In the meantime you can solve this issue on your app by toggling the js mode of Source data property and removing the map function.

BIshounen commented 9 months ago

Took me 2 days to realise exactly what's happening and how to fix it via JS

AmanAgarwal041 commented 5 months ago

Moving this to sprint backlog for the priority for Snowflake tasks.