Skip to content

Commit 4e0aeed

Browse files
committed
[Docs Site] Fix default WARP Linux download link
1 parent 0ec3f88 commit 4e0aeed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/WARPRelease.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ const sortedPlatforms = Object.entries(release.linuxPlatforms ?? {}).sort(
5959
<p>
6060
<span>
6161
{
62-
release.linuxPlatforms ? (
62+
sortedPlatforms.length > 0 ? (
6363
<select>
6464
{sortedPlatforms.map(([platform]) => (
6565
<option value={platform}>
@@ -70,7 +70,7 @@ const sortedPlatforms = Object.entries(release.linuxPlatforms ?? {}).sort(
7070
<a
7171
class="inline-block"
7272
data-linux-download
73-
href={`https://downloads.cloudflareclient.com/v1/download/${release.linuxPlatforms[0]}/version/${release.version}`}
73+
href={`https://downloads.cloudflareclient.com/v1/download/${sortedPlatforms[0][0]}/version/${release.version}`}
7474
>
7575
Download
7676
</a>

0 commit comments

Comments
 (0)