Skip to content

Commit a10c85d

Browse files
author
Jonatan Salas
committed
Merge remote-tracking branch 'origin/experimental' into experimental
# Conflicts: # src/components/field/FileUpload.js
2 parents 9baa246 + b2a9d18 commit a10c85d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/field/FileUpload.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ export default class FileUpload extends Component {
4949
files.splice(position, 1);
5050

5151
this.setState({files: files});
52-
this.setState({disableUpload: this.state.files.length == 0});
52+
this.setState({disableUpload: files.length == 0});
53+
5354
};
5455

5556
openDropZone = () => {

0 commit comments

Comments
 (0)