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

Consistently handle empty states from telepath / getState / setState #35

Closed
wants to merge 1 commit into from

Conversation

gasman
Copy link
Collaborator

@gasman gasman commented Jul 22, 2021

setState needs to handle a dict with a blank 'value' field as an empty state, as that's what get_value_data returns for use in the telepath adapter, and what getState (used for block duplication) returns.

Without this, a newly-added block shows the buttons from the 'chosen' state:
Screenshot 2021-07-22 at 18 09 20

setState needs to handle a dict with a blank 'value' field as an empty state, as that's what get_value_data returns for use in the telepath adapter, and what getState (used for block duplication) returns.
@gasman
Copy link
Collaborator Author

gasman commented Jul 22, 2021

Merged in 0f367b7

@gasman gasman closed this Jul 22, 2021
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

Successfully merging this pull request may close these issues.

None yet

1 participant