Skip to content

Commit

Permalink
fix(MdFile): empty statement (#1716)
Browse files Browse the repository at this point in the history
empty file selection should check files' length while it exists

fix #1711
  • Loading branch information
VdustR authored May 10, 2018
1 parent 8e9aaf9 commit ae10127
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/MdField/MdFile/MdFile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
return names.join(', ')
},
getFileName (files, target) {
if (!files) {
if (!files || files.length === 0) {
return target.value.split('\\').pop()
}
Expand Down

0 comments on commit ae10127

Please sign in to comment.