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 5ec80ed commit b2a9d18Copy full SHA for b2a9d18
src/components/field/FileUpload.js
@@ -49,7 +49,7 @@ export default class FileUpload extends Component {
49
files.splice(position, 1);
50
51
this.setState({files: files});
52
- this.setState({disableUpload: this.state.files.length == 0});
+ this.setState({disableUpload: files.length == 0});
53
54
};
55
0 commit comments