We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ec3f88 commit 4e0aeedCopy full SHA for 4e0aeed
src/components/WARPRelease.astro
@@ -59,7 +59,7 @@ const sortedPlatforms = Object.entries(release.linuxPlatforms ?? {}).sort(
59
<p>
60
<span>
61
{
62
- release.linuxPlatforms ? (
+ sortedPlatforms.length > 0 ? (
63
<select>
64
{sortedPlatforms.map(([platform]) => (
65
<option value={platform}>
@@ -70,7 +70,7 @@ const sortedPlatforms = Object.entries(release.linuxPlatforms ?? {}).sort(
70
<a
71
class="inline-block"
72
data-linux-download
73
- href={`https://downloads.cloudflareclient.com/v1/download/${release.linuxPlatforms[0]}/version/${release.version}`}
+ href={`https://downloads.cloudflareclient.com/v1/download/${sortedPlatforms[0][0]}/version/${release.version}`}
74
>
75
Download
76
</a>
0 commit comments