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:
parent
61af75d712
commit
91c6935e2d
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue