Guard against no file

pull/2135/head
Andrew Watkins 2017-10-18 15:43:54 -07:00
parent 99c34ff00b
commit 6c7c304eec
1 changed files with 4 additions and 0 deletions

View File

@ -79,6 +79,10 @@ class WriteDataForm extends Component {
file = e.target.files[0]
}
if (!file) {
return
}
e.preventDefault()
e.stopPropagation()