fix(ui): fix metadata when we do not have uploadData
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2307>
This commit is contained in:
parent
66473084eb
commit
f0e7ab9945
|
@ -178,7 +178,7 @@ const uploadedFiles = computed(() => {
|
||||||
|
|
||||||
if (file.response?.uuid) {
|
if (file.response?.uuid) {
|
||||||
const uuid = file.response.uuid as string
|
const uuid = file.response.uuid as string
|
||||||
data.metadata = uploadImportData[uuid] ?? uploadData[uuid].import_metadata ?? {}
|
data.metadata = uploadImportData[uuid] ?? uploadData[uuid]?.import_metadata ?? {}
|
||||||
data.removed = removed.has(uuid)
|
data.removed = removed.has(uuid)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue