FlutterFlow / flutterflow-issues

A community issue tracker for FlutterFlow.
129 stars 26 forks source link

Code Expression setting in actions broken #4842

Open Rishay97 opened 1 week ago

Rishay97 commented 1 week ago

Can we access your project?

Current Behavior

When I am setting a value and I click ‘Code Expression’, i define my variables and type the code, for example list..add(user) And click confirm. All is fine, But after running the code, the code expression disappears and is actually blank when I go back to look at the action flow. It might have something do do with me referencing a supabase row query, because I’ve noticed that this happens when I am using supabase.

IMG_4959

Expected Behavior

my code expression value should not be blank after adding it in. It should remain.

Steps to Reproduce

Have a supabase row, query the row in the page. Click on a button to bring up action flow Set the action to ‘update supabase row’ And filter to select the relavent row, Under value: select code expression In code expression: set variable 1 to be a list string that is from the supabase row Set variable 2 to be another string Set the code expression to be var1..add(var2) And save the custom code. It should save (sometimes it doesnt) But after running the code, the code expression dissappears.

Reproducible from Blank

Bug Report Code (Required)

Test

Visual documentation

test

Environment

- FlutterFlow version: 
- Platform:
- Browser name and version:
- Operating system and version affected:

Additional Information

No response

Alezanello commented 1 week ago

Hello!

I attempted to replicate the issue, but I'm unable to save the code expression. There might be something I'm overlooking.

Here are the steps I followed:

  1. Create a new project.
  2. Add Supabase to the project.
  3. Query a Supabase row.
  4. Create an action to update the row.
  5. In the field for the list of strings in the row, set it to add a value.
  6. For the value, create a code expression that expects two variables:
    • 6.1: A list of strings, representing the queried row.
    • 6.2: A string to add to that list.
  7. In the code expression, use: var1..add(var2)

However, I'm unable to save this configuration. Could you share a short recording via Loom or another tool to show exactly how you're managing to save it? This would help me better understand and assist further.

Thank you!