Guard against no file
parent
99c34ff00b
commit
6c7c304eec
|
@ -79,6 +79,10 @@ class WriteDataForm extends Component {
|
|||
file = e.target.files[0]
|
||||
}
|
||||
|
||||
if (!file) {
|
||||
return
|
||||
}
|
||||
|
||||
e.preventDefault()
|
||||
e.stopPropagation()
|
||||
|
||||
|
|
Loading…
Reference in New Issue