Skip to content

Commit

Permalink
Update logic
Browse files Browse the repository at this point in the history
  • Loading branch information
rowanc1 committed Apr 5, 2024
1 parent e0a11a0 commit f611a35
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/site/src/pages/Article.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,9 @@ function combineDownloads(
pageFrontmatter: PageLoader['frontmatter'],
) {
if (pageFrontmatter.downloads) {
if (siteDownloads) {
return [...pageFrontmatter.downloads, ...siteDownloads];
}
return pageFrontmatter.downloads;
}
// No downloads on the page
// No downloads on the page, combine the exports if they exist
if (siteDownloads) {
return [...(pageFrontmatter.exports ?? []), ...siteDownloads];
}
Expand Down

0 comments on commit f611a35

Please sign in to comment.