Skip to content

Commit ae10127

Browse files
authoredMay 10, 2018
fix(MdFile): empty statement (#1716)
empty file selection should check files' length while it exists fix #1711
1 parent 8e9aaf9 commit ae10127

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/components/MdField/MdFile/MdFile.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
return names.join(', ')
4343
},
4444
getFileName (files, target) {
45-
if (!files) {
45+
if (!files || files.length === 0) {
4646
return target.value.split('\\').pop()
4747
}
4848

0 commit comments

Comments
 (0)