From 34e4553deec6ec50b0f9eaa36eab4b8983f11523 Mon Sep 17 00:00:00 2001
From: Vitalii Lysak <v.lysak@dunice.net>
Date: Tue, 5 Jul 2022 11:23:21 +0300
Subject: clean

---
 src/components/Global/FormFile.vue | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

(limited to 'src/components/Global/FormFile.vue')

diff --git a/src/components/Global/FormFile.vue b/src/components/Global/FormFile.vue
index 48bab7ecc..46fa9551e 100644
--- a/src/components/Global/FormFile.vue
+++ b/src/components/Global/FormFile.vue
@@ -41,7 +41,7 @@
         variant="light"
         class="px-2 ml-auto"
         :disabled="disabled"
-        @click="closeFile"
+        @click="file = null"
         ><icon-close :title="$t('global.fileUpload.clearSelectedFile')" /><span
           class="sr-only"
           >{{ $t('global.fileUpload.clearSelectedFile') }}</span
@@ -109,13 +109,6 @@ export default {
       }
     },
   },
-
-  methods: {
-    closeFile() {
-      this.fileName = null;
-      this.file = null;
-    },
-  },
 };
 </script>
 <style lang="scss" scoped>
-- 
cgit v1.2.3

