Skip to content

Commit

Permalink
fix: download button main channel versions
Browse files Browse the repository at this point in the history
  • Loading branch information
MiniDigger committed Jan 5, 2025
1 parent acdf662 commit 8116ea4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/components/projects/DownloadButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ function formatVersionRange(versions: string[]): string {
</DropdownItem>
</DropdownButton>

<DropdownButton v-else-if="project.mainChannelVersions?.length" :button-size="small ? 'medium' : 'large'">
<DropdownButton v-else-if="project.mainChannelVersions && Object.keys(project.mainChannelVersions).length > 0" :button-size="small ? 'medium' : 'large'">
<template #button-label>
<span class="items-center inline-flex">
<IconMdiDownloadOutline />
Expand Down

0 comments on commit 8116ea4

Please sign in to comment.