fix: ensure description is always available in upload metadata form

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2307>
pipelines/27771
wvffle 2023-01-19 13:23:14 +00:00 zatwierdzone przez Marge
rodzic 61af75d712
commit 91c6935e2d
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -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)