Skip to content

Commit 8116ea4

Browse files
committedJan 5, 2025·
fix: download button main channel versions
1 parent acdf662 commit 8116ea4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎frontend/src/components/projects/DownloadButton.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ function formatVersionRange(versions: string[]): string {
173173
</DropdownItem>
174174
</DropdownButton>
175175

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

0 commit comments

Comments
 (0)