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(test): Fix possible sanity test bug #1117

Merged
merged 1 commit into from
Dec 13, 2019
Merged

Conversation

mxiao6
Copy link
Contributor

@mxiao6 mxiao6 commented Dec 13, 2019

This change is to fix a sanity test. The function createThumbnailImage is used as a callback. Maybe the object has been destroyed before the callback happens. So we need to check whether this.thumbnailImageCache still exists.

@mxiao6 mxiao6 requested a review from a team as a code owner December 13, 2019 18:37
@boxcla
Copy link

boxcla commented Dec 13, 2019

Verified that @mxiao6 has signed the CLA. Thanks for the pull request!

src/lib/ThumbnailsSidebar.js Outdated Show resolved Hide resolved
src/lib/ThumbnailsSidebar.js Outdated Show resolved Hide resolved
@mergify mergify bot merged commit dc71bed into box:master Dec 13, 2019
@mxiao6 mxiao6 deleted the fix-sanity branch December 23, 2019 18:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants