From f0e7ab994569024d369753e66946c013d8da9d6f Mon Sep 17 00:00:00 2001 From: wvffle Date: Tue, 27 Dec 2022 14:00:20 +0000 Subject: [PATCH] fix(ui): fix metadata when we do not have uploadData Part-of: --- front/src/components/channels/UploadForm.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/front/src/components/channels/UploadForm.vue b/front/src/components/channels/UploadForm.vue index 4181a5623..2a6550835 100644 --- a/front/src/components/channels/UploadForm.vue +++ b/front/src/components/channels/UploadForm.vue @@ -178,7 +178,7 @@ const uploadedFiles = computed(() => { if (file.response?.uuid) { 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) }