fix latest snapshot showing twice sometimes with version ranges (#5964)

This commit is contained in:
Prospector
2026-05-02 15:13:08 -07:00
committed by GitHub
parent 596fd81348
commit 4348664618
2 changed files with 2 additions and 2 deletions

View File

@@ -141,7 +141,7 @@ export function formatVersionsForDisplay(
output = [...releaseVersionsAsRanges, ...output]
}
if (latestSnapshot && !output.includes(latestSnapshot)) {
if (releaseVersionsAsRanges.length > 0 && latestSnapshot) {
output = [latestSnapshot, ...output]
}
return output