fix(ui): fix double uploading file from channels upload form

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2307>
This commit is contained in:
wvffle 2022-12-27 14:19:13 +00:00 committed by Marge
parent f0e7ab9945
commit 640abb07f7
2 changed files with 2 additions and 2 deletions

View File

@ -153,7 +153,7 @@ const beforeFileUpload = (newFile: VueUploadItem) => {
if (remainingSpace.value < (newFile.size ?? Infinity) / 1e6) { if (remainingSpace.value < (newFile.size ?? Infinity) / 1e6) {
newFile.error = 'denied' newFile.error = 'denied'
} else { } else {
upload.value.active = true newFile.active = true
} }
} }

View File

@ -22,7 +22,7 @@ const props = withDefaults(defineProps<Props>(), {
}) })
const newValues = reactive<Values>({ const newValues = reactive<Values>({
...(props.values ?? props.upload.import_metadata ?? {}) as Values ...(props.values ?? props.upload.import_metadata ?? { description: '' }) as Values
}) })
const isLoading = computed(() => !props.upload) const isLoading = computed(() => !props.upload)