FlutterFlow / flutterflow-issues

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

Code Expression setting in actions broken #4842

Closed Rishay97 closed 1 day ago

Rishay97 commented 2 weeks 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 2 weeks 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!

github-actions[bot] commented 1 week ago

This issue is stale because it has been open for 7 days with no activity. If there are no further updates, a team member will close the issue.

Alezanello commented 1 day ago

Closing this issue since we haven't heard back from you. If you are still facing the problem please submit a new issue. Have a great day!