Skip to content

Commit

Permalink
Merge pull request #7 from cust0dian/fix-wrong-aspect-ratio-on-images…
Browse files Browse the repository at this point in the history
…-change

Make sure React knows that each image is a unique entity
  • Loading branch information
benhowell authored Sep 10, 2016
2 parents c9f3561 + 239fad7 commit 249f9f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Gallery.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ class Gallery extends Component {
render () {
var images = this.state.thumbnails.map((item, idx) => {
return <Image
key={"Image-"+idx}
key={item.src}
item={item}
index={idx}
margin={this.props.margin}
Expand Down

0 comments on commit 249f9f3

Please sign in to comment.