I have a query from the Supabase table called 'contatos'. In the dropdown, I'm using the ID as the value and 'nome_contato' as the label. Below the dropdown, I have a list that filters the 'contatos' table based on the ID selected by the user, as shown in this image:
For some reason, the dropdown value isn't matching the row in Supabase. I tried storing the selected value in a component state, but it had no effect. Does anyone know if the label in the dropdown affects the query? How can I bypass this issue?