Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When using a Custom Function for the first time with a Bool parameter get "Current variable is not valid" #7

Closed
bulgariamitko opened this issue Sep 21, 2022 · 2 comments
Labels
closed: fixed priority: low status: confirmed Issue has been reproduced and confirmed as a bug. type: bug Something isn't working.

Comments

@bulgariamitko
Copy link
Contributor

Expected behavior

When using a Custom Function to assign a Text Widget for example you press Confirm you should not get any errors.

Current behavior

When using a Custom Function to assign a Text Widget for example and there are parameters which are bool and are False by default if you try to press Confirm you are getting "Current variable is not valid". In order to fix this error you need to make all bools values True and then False again and then click Confirm and it will work.

To Reproduce

Steps to reproduce the behavior:

  1. Create a Custom Function with at least 1 parameter that is a bool and the default value is False and it is returning a simple text string for example - "Hello World"
  2. Create Text Widget and press on Set From Variable
  3. Click on the Custom Function you just created
  4. Without clicking anything else just click Confirm (leaving the default bool value false)

Context

This error is misleading as there is not an error.

Screenshots

Your environment

  • Version of FlutterFlow used: 3.0.5
  • Platform (e.g. Web, MacOS Desktop): Web
  • Browser name and version: Chrome 105
  • Operating system and version (desktop or mobile): desktop
@bulgariamitko bulgariamitko added the status: needs triage A potential issue that has not been confirmed as a bug. label Sep 21, 2022
@hariprasadms
Copy link

hariprasadms commented Sep 21, 2022

Hi, I can reproduce it. I can see that, it is showing error message first time as explained above. Adding a screenshot.

image

@hariprasadms hariprasadms added type: bug Something isn't working. status: confirmed Issue has been reproduced and confirmed as a bug. priority: low and removed status: needs triage A potential issue that has not been confirmed as a bug. labels Sep 21, 2022
@agreaves
Copy link
Collaborator

Fixed next deploy!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed: fixed priority: low status: confirmed Issue has been reproduced and confirmed as a bug. type: bug Something isn't working.
Projects
None yet
Development

No branches or pull requests

3 participants