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 80d7f0c commit e86aaf2Copy full SHA for e86aaf2
1 file changed
app/components/PackageVersions.vue
@@ -109,7 +109,14 @@ const visibleTagRows = computed(() => {
109
const rows = isPackageDeprecated.value
110
? allTagRows.value
111
: allTagRows.value.filter(row => !row.primaryVersion.deprecated)
112
- return rows.slice(0, MAX_VISIBLE_TAGS)
+ const first = rows.slice(0, MAX_VISIBLE_TAGS)
113
+ const latestTagRow = rows.find(row => row.tag === 'latest')
114
+ // Ensure 'latest' tag is always included (at the end) if not already present
115
+ if (latestTagRow && !first.includes(latestTagRow)) {
116
+ first.pop()
117
+ first.push(latestTagRow)
118
+ }
119
+ return first
120
})
121
122
// Hidden tag rows (all other tags) - shown in "Other versions"
0 commit comments