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 crash when this.props.images.length - 1 < this.state.currentImage #111

Merged
merged 1 commit into from
Mar 9, 2019

Conversation

lryta
Copy link
Contributor

@lryta lryta commented Mar 1, 2019

In demo, when start deleting images at index [1, this.props.images.length-1], the component will crash when the image being deleted is the last one in the array. This commit fixes this issue.

The issue can be reproduced within the given demo.

@benhowell benhowell merged commit 7cf2d2d into benhowell:master Mar 9, 2019
@benhowell
Copy link
Owner

benhowell commented Mar 10, 2019

Released: v0.5.4

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.

2 participants