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

Mutators on control_if blocks throw errors #5999

Closed
alschmiedt opened this issue Mar 15, 2022 · 4 comments
Closed

Mutators on control_if blocks throw errors #5999

alschmiedt opened this issue Mar 15, 2022 · 4 comments
Assignees

Comments

@alschmiedt
Copy link
Contributor

Describe the bug
Opening the mutator on the controls_if block throws an error.

To Reproduce

Steps to reproduce the behavior:

  1. Go to the playground.
  2. Drag an if block to the workspace.
  3. Click the mutator
  4. See error in the console

Expected behavior
No error

Screenshots

Stack Traces

Uncaught TypeError: Cannot read properties of undefined (reading 'block_')
    at sourceListener_ (mutator.js:372:16)
    at WorkspaceSvg.Workspace.fireChangeListener (workspace.js:699:5)
    at fireNow (utils.js:348:22)

Additional context

@alschmiedt alschmiedt added issue: triage Issues awaiting triage by a Blockly team member type: regression and removed issue: triage Issues awaiting triage by a Blockly team member labels Mar 15, 2022
@alschmiedt alschmiedt self-assigned this Mar 15, 2022
@rachel-fenichel
Copy link
Collaborator

When did this break?

@alschmiedt
Copy link
Contributor Author

I think 15 days ago in #5952.

@BeksOmega
Copy link
Collaborator

I think 15 days ago in #5952.

Sorry about that :/

@rachel-fenichel
Copy link
Collaborator

It happens. I just wanted to tie together the PRs in this chain.

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

No branches or pull requests

3 participants