Skip to content

Commit

Permalink
Fix download links
Browse files Browse the repository at this point in the history
  • Loading branch information
oeway authored May 23, 2024
1 parent 1f0f27a commit 6e282e7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/TestSummary.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
It has been tested with:
<code
v-for="(tests, consumer) in summary.tests"
:key="consumer"
:key="'code-' + consumer"
style="margin: 2px;"
>
{{ consumer + " " }}
Expand All @@ -17,7 +17,7 @@
<div
v-show="showAll"
v-for="(tests, consumer) in summary.tests"
:key="consumer"
:key="'details-' + consumer"
class="container"
>
<h3>{{ consumer }}</h3>
Expand Down
3 changes: 2 additions & 1 deletion src/views/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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 || [];
Expand Down

0 comments on commit 6e282e7

Please sign in to comment.