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

service/AppStore: add null check in dispose method #675

Merged
merged 1 commit into from
Oct 18, 2018

Conversation

williamboman
Copy link
Contributor

The disposer field were of any type so TS did not catch this.

If disableSearch option is set to true, we never set up the mobx observer, effectively leading to this.disposer being undefined.

@RomanHotsiy RomanHotsiy merged commit 6b7c5b7 into Redocly:master Oct 18, 2018
@RomanHotsiy
Copy link
Member

@williamboman good catch 👍
Thanks!

@williamboman williamboman deleted the fix-disposer-null-check branch October 18, 2018 11:17
@williamboman
Copy link
Contributor Author

No probs! Would it be possible to get a new release with this included 🙈?

@RomanHotsiy
Copy link
Member

It's in progress: https://travis-ci.org/Rebilly/ReDoc/builds/443139170

williamboman added a commit to williamboman/ReDoc that referenced this pull request Oct 19, 2018
* upstream/master:
  docs: Add information to README about Docker image & Docker Hub (Redocly#676)
  chore: Release 2.0.0-alpha.41 🔖
  chore: fix lint issue
  fix: add null check in dispose method (Redocly#675)
  chore: fix cli ts compiling
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

2 participants