Skip to content

Commit

Permalink
BHBC-2076: Fix download action bug
Browse files Browse the repository at this point in the history
  • Loading branch information
curtisupshall committed Jan 14, 2023
1 parent 998e1f8 commit 03a6bc3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/src/features/resources/ResourcesPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,17 +79,18 @@ const ResourcesPage: React.FC = () => {
resources.map((row: IResourceFile) => {
const { templateType } = row.metadata;
const templateName = row.metadata.templateName || row.fileName;
const downloadUrl = ensureProtocol(row.url, 'https://')

return (
<TableRow key={row.url}>
<TableCell>
<Link href={ensureProtocol(row.url, 'https://')} underline="always" style={{ fontWeight: 700 }}>
<Link href={downloadUrl} underline="always" style={{ fontWeight: 700 }}>
{templateName}
</Link>
</TableCell>
<TableCell>{templateType || 'Other'}</TableCell>
<TableCell align="center">
<IconButton href={row.url} aria-label={`Download ${templateName}`}>
<IconButton href={downloadUrl} aria-label={`Download ${templateName}`}>
<Icon path={mdiTrayArrowDown} size={0.8} />
</IconButton>
</TableCell>
Expand Down

0 comments on commit 03a6bc3

Please sign in to comment.