From a38dc4b953b4026d515b0f673113075cf9d65cdb Mon Sep 17 00:00:00 2001 From: Sonja Happ Date: Wed, 5 Feb 2020 11:38:16 +0100 Subject: [PATCH] minor edits --- src/file/select-file.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/file/select-file.js b/src/file/select-file.js index fbb9965..5e273dc 100644 --- a/src/file/select-file.js +++ b/src/file/select-file.js @@ -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 = } - console.log("FileOptions: ", fileOptions); const progressBarStyle = { marginLeft: '100px', marginTop: '-25px'