diff --git a/src/file/select-file.js b/src/file/select-file.js index 132caf9..bf7469a 100644 --- a/src/file/select-file.js +++ b/src/file/select-file.js @@ -69,11 +69,15 @@ class SelectFile extends React.Component { render() { - let fileOptions; + let fileOptions = []; if (this.props.files.length > 0){ - fileOptions = this.props.files.map(f => + fileOptions.push( + + ) + + fileOptions.push(this.props.files.map(f => - ); + )); } else { fileOptions = }