Browse Source

Поправил бажок

Book Pauk 6 years ago
parent
commit
89ca0f452a
1 changed files with 2 additions and 1 deletions
  1. 2 1
      client/components/Reader/LoaderPage/LoaderPage.vue

+ 2 - 1
client/components/Reader/LoaderPage/LoaderPage.vue

@@ -73,7 +73,8 @@ class LoaderPage extends Vue {
 
     loadFile() {
         const file = this.$refs.file.files[0];
-        this.$emit('load-file', {file});
+        if (file)
+            this.$emit('load-file', {file});
     }
 
     openHelp() {