Skip to content

Commit

Permalink
Fix: Fix download button
Browse files Browse the repository at this point in the history
  • Loading branch information
sevenc-nanashi committed Aug 31, 2024
1 parent 59f34dd commit 94d3e92
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions frontend/app/routes/charts.$name._index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -400,15 +400,16 @@ const ChartPage = () => {
</>
)}
{chartData.chart && (
<Link
to={pathcat("/charts/:name/download_chart", {
<a
href={pathcat("/api/charts/:name/download_chart", {
name: chartName,
})}
target="_blank"
className="button-tertiary text-center p-1"
>
<ArrowDownloadRegular className="small-button-icon" />
{t("download")}
</Link>
</a>
)}

<a
Expand Down

0 comments on commit 94d3e92

Please sign in to comment.