We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cfeb3bd commit 0da6c22Copy full SHA for 0da6c22
samples/photo_album/src/components/PhotosUploader.js
@@ -79,10 +79,10 @@ class PhotosUploader extends Component {
79
</form>
80
<h2>Status</h2>
81
</div>
82
- {this.props.uploadedPhotos.map(uploadedPhoto => {
+ {this.props.uploadedPhotos.map((uploadedPhoto, index) => {
83
return (
84
<UploadedPhotoStatusContainer
85
- key={uploadedPhoto.fileName}
+ key={index}
86
uploadedPhoto={uploadedPhoto}
87
/>
88
);
@@ -99,7 +99,7 @@ class PhotosUploader extends Component {
99
onPhotoSelected(files) {
100
const url = `https://api.cloudinary.com/v1_1/${
101
this.context.cloudName
102
- }/upload`;
+ }/upload`;
103
const title = this.titleEl.value;
104
105
for (let file of files) {
0 commit comments