fix(ui): move files variable to the top in channel upload form component

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2307>
This commit is contained in:
wvffle 2022-12-27 13:29:50 +00:00 committed by Marge
parent 934e179d59
commit 943b50ffda
1 changed files with 2 additions and 1 deletions

View File

@ -63,6 +63,8 @@ const values = reactive({
album: null album: null
}) })
const files = ref([] as VueUploadItem[])
// //
// Channels // Channels
// //
@ -164,7 +166,6 @@ const baseImportMetadata = computed(() => ({
// //
// Uploaded files // Uploaded files
// //
const files = ref([] as VueUploadItem[])
const removed = reactive(new Set<string>()) const removed = reactive(new Set<string>())
const uploadedFiles = computed(() => { const uploadedFiles = computed(() => {
const uploadedFiles = files.value.map(file => { const uploadedFiles = files.value.map(file => {