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

fix: opening/closing the mutators #6000

Merged
merged 4 commits into from
Mar 21, 2022
Merged

Conversation

alschmiedt
Copy link
Contributor

@alschmiedt alschmiedt commented Mar 15, 2022

The basics

  • I branched from develop
  • My pull request is against develop
  • My code follows the style guide

The details

Resolves

#5999

Proposed Changes

Add .bind(this) for the mutator and check that the block is not null before calling saveConnections. Calling saveConnections was causing problems when the block was deleted because this.block_ was coming back null.

Reason for Changes

Fixing bugs.

Test Coverage

Documentation

Additional Information

@BeksOmega
Copy link
Collaborator

Could we use an arrow function for this since we're ES6 now?

@alschmiedt
Copy link
Contributor Author

Oh probably, but actually I tested a bit more and it looks like this fails when we delete the block so going to probably put the initial fix in place which was to hav mutatorBlock = this.block_.

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.

3 participants