Explorar o código

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

Book Pauk %!s(int64=6) %!d(string=hai) anos
pai
achega
89ca0f452a
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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() {