fix(front): channel upload fixes

environments/review-docs-feat-z0hkbz/deployments/21061
ArneBo 2025-04-14 14:37:14 +02:00
rodzic 1a5c9cecaa
commit f75cbf5884
2 zmienionych plików z 3 dodań i 4 usunięć

Wyświetl plik

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

Wyświetl plik

@ -27,17 +27,16 @@ const props = withDefaults(defineProps<Props>(), {
})
// TODO: Make Tags work
type Item = { type: 'custom' | 'preset', label: string }
type tagsModel = {
currents: Item[],
others?: Item[],
}
const tags = ref({
const tags = ref<tagsModel>({
currents: [],
others: []
} satisfies tagsModel)
})
// TODO: check if `position: 0` is a good default
const newValues = reactive<Values>({