1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/web/ synced 2025-03-09 00:00:01 +01:00

minor edits

This commit is contained in:
Sonja Happ 2020-02-05 11:38:16 +01:00
parent 26781f7c11
commit a38dc4b953

View file

@ -72,7 +72,7 @@ class SelectFile extends React.Component {
// send file to callback
if (this.props.onChange != null) {
const file = this.state.files.find(f => f._id === event.target.value);
const file = this.state.files.find(f => f.id === event.target.value);
this.props.onChange(file);
}
@ -108,8 +108,6 @@ class SelectFile extends React.Component {
render() {
console.log("Files: ", this.state.files);
let fileOptions;
if (this.state.files.length > 0){
fileOptions = this.state.files.map(f =>
@ -119,7 +117,6 @@ class SelectFile extends React.Component {
fileOptions = <option >No files for this simulation model</option>
}
console.log("FileOptions: ", fileOptions);
const progressBarStyle = {
marginLeft: '100px',
marginTop: '-25px'