Guard Clause in acceptFiles if empty.
Signed-off-by: Lewis Cowles <lewiscowles@me.com>
This commit is contained in:
parent
e4393f3940
commit
1133c14169
|
|
@ -168,8 +168,10 @@ class ChecksumResolver extends React.Component {
|
|||
}
|
||||
|
||||
acceptFiles = async files => {
|
||||
const file = files[0];
|
||||
await this.acceptFile(file);
|
||||
if(files && files.length) {
|
||||
const file = files[0];
|
||||
await this.acceptFile(file);
|
||||
}
|
||||
}
|
||||
|
||||
acceptFile = async file => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue