Skip to content

Commit

Permalink
Merge pull request #1172 from ScilifelabDataCentre/Paul/FREYA-891/Exc…
Browse files Browse the repository at this point in the history
…eptions-dashboard

FREYA-891 :: Modify script in layouts/partials/dashboards.html
  • Loading branch information
senthil10 authored Aug 13, 2024
2 parents e535d6f + bc684bb commit 787faee
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions layouts/partials/dashboards.html
Original file line number Diff line number Diff line change
Expand Up @@ -167,11 +167,14 @@ <h6><a href="{{ .Page.RelPermalink }}">{{ .Name }}</a></h6>
month: 'short',
day: 'numeric'
});

cardData.push({ card, updatedDate });

} else {
spanElement.textContent = 'No matching entry in EBI index';
// In case there is no entry in the EBI file yet,
// we add a mock date for the reordering to keep working
spanElement.textContent = 'not yet available';
updatedDate = new Date('1900-01-01');
cardData.push({ card, updatedDate });
}
});

Expand Down

0 comments on commit 787faee

Please sign in to comment.