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

[Bug]: Cannot set empty object as initial value for the temporary state data query #1182

Open
1 task done
kmbuthia opened this issue Sep 22, 2024 · 0 comments
Open
1 task done

Comments

@kmbuthia
Copy link

kmbuthia commented Sep 22, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

When creating/using a temporary state data query via the UI, I cannot change the initial null value to {} (empty object).
In fact pressing the shift key immediately unfocuses the cursor on the initial state input field.
Copying the brace characters and pasting into the "initial state" input field also does not work.

Expected Behavior

I should be able to set an initial empty state of {}

Screenshot 2024-09-22 at 11 20 03

Steps to reproduce

  1. Open the UI editor and open the data queries section towards the bottom
  2. Choose "temporary state" as the data query you want to use
  3. Try to enter an empty object as the initial value

Environment

Docker self-hosted. Community image version 2.4.5.

Additional Information

Current workaround when I need an initial state of an empty object is to instead use localStorage. Not ideal though since localStorage is meant for data that should be more persistent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant