From 89ca0f452a55d44af5919a20b03afa6ecf96e6e4 Mon Sep 17 00:00:00 2001 From: Book Pauk Date: Mon, 4 Feb 2019 21:10:44 +0700 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D0=BF=D1=80=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D0=BB=20=D0=B1=D0=B0=D0=B6=D0=BE=D0=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/components/Reader/LoaderPage/LoaderPage.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/components/Reader/LoaderPage/LoaderPage.vue b/client/components/Reader/LoaderPage/LoaderPage.vue index 923bf1a7..e5711ef2 100644 --- a/client/components/Reader/LoaderPage/LoaderPage.vue +++ b/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() {