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
parent 61af75d712
commit 91c6935e2d
1 changed files with 2 additions and 1 deletions

View File

@ -22,7 +22,8 @@ const props = withDefaults(defineProps<Props>(), {
}) })
const newValues = reactive<Values>({ 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) const isLoading = computed(() => !props.upload)