From 6e282e74a8dda001f18166dfc11a8678188575b2 Mon Sep 17 00:00:00 2001 From: Wei Ouyang Date: Thu, 23 May 2024 20:19:28 +0200 Subject: [PATCH] Fix download links --- src/components/TestSummary.vue | 4 ++-- src/views/Home.vue | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/components/TestSummary.vue b/src/components/TestSummary.vue index c578cd3c..36211d54 100644 --- a/src/components/TestSummary.vue +++ b/src/components/TestSummary.vue @@ -3,7 +3,7 @@ It has been tested with: {{ consumer + " " }} @@ -17,7 +17,7 @@

{{ consumer }}

diff --git a/src/views/Home.vue b/src/views/Home.vue index ef81160f..6fc72129 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -514,7 +514,7 @@ function normalizeItem(self, item, bioEngineConfigs) { if (item.id in bioEngineConfigs) { item.links.push("imjoy/imjoy"); } - if (item.training_data) { + if (item.training_data && !item.links.includes(item.training_data.id)) { item.links.push(item.training_data.id); } for (let link_key of item.links) { @@ -917,6 +917,7 @@ export default { for (let k of Object.keys(newRDF)) { if (k !== "rdf_source" && k !== "id") item[k] = newRDF[k]; } + delete item.badges; Object.assign(item, normalizeItem(this, item, this.bioEngineConfigs)); item.links = item.links || [];