fix: ensure description is always available in upload metadata form

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2307>
This commit is contained in:
wvffle 2023-01-19 13:23:14 +00:00 committed by Marge
commit 91c6935e2d

View file

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