From 943b50ffda02bcfe9ddc6175d71590c2e8e6dfb4 Mon Sep 17 00:00:00 2001 From: wvffle Date: Tue, 27 Dec 2022 13:29:50 +0000 Subject: [PATCH] fix(ui): move files variable to the top in channel upload form component Part-of: --- front/src/components/channels/UploadForm.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/front/src/components/channels/UploadForm.vue b/front/src/components/channels/UploadForm.vue index 2b4bf9253..3b964f737 100644 --- a/front/src/components/channels/UploadForm.vue +++ b/front/src/components/channels/UploadForm.vue @@ -63,6 +63,8 @@ const values = reactive({ album: null }) +const files = ref([] as VueUploadItem[]) + // // Channels // @@ -164,7 +166,6 @@ const baseImportMetadata = computed(() => ({ // // Uploaded files // -const files = ref([] as VueUploadItem[]) const removed = reactive(new Set()) const uploadedFiles = computed(() => { const uploadedFiles = files.value.map(file => {