diff --git a/front/src/components/channels/UploadForm.vue b/front/src/components/channels/UploadForm.vue index a2fcbba0d..74aa6b6b1 100644 --- a/front/src/components/channels/UploadForm.vue +++ b/front/src/components/channels/UploadForm.vue @@ -293,7 +293,7 @@ const uploadedFilesById = computed(() => uploadedFiles.value.reduce((acc: Record // const baseImportMetadata = computed(() => ({ - channel: values.channel, + channel: selectedChannel, import_status: 'draft', import_metadata: { license: values.license, album: values.album } })) diff --git a/front/src/components/channels/UploadMetadataForm.vue b/front/src/components/channels/UploadMetadataForm.vue index 58ba2b501..d8c887550 100644 --- a/front/src/components/channels/UploadMetadataForm.vue +++ b/front/src/components/channels/UploadMetadataForm.vue @@ -27,17 +27,16 @@ const props = withDefaults(defineProps(), { }) // TODO: Make Tags work - type Item = { type: 'custom' | 'preset', label: string } type tagsModel = { currents: Item[], others?: Item[], } -const tags = ref({ +const tags = ref({ currents: [], others: [] -} satisfies tagsModel) +}) // TODO: check if `position: 0` is a good default const newValues = reactive({