Skip to content

Commit

Permalink
fix: filter latest version out of select version options
Browse files Browse the repository at this point in the history
  • Loading branch information
sripwoud committed Jun 27, 2024
1 parent 4b1996f commit db5fa75
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apps/web/src/hooks/useVersions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ export function useVersions() {
queryKey: ['versions', selectedProject],
queryFn,
select: (data) =>
data.filter(tag => tag.includes(`@zk-kit/${selectedProject}-artifacts@`)).map(tag => tag.split('@')[2]),
data
.filter(tag => tag.includes(`@zk-kit/${selectedProject}-artifacts@`))
.map(tag => tag.split('@')[2])
.filter(version => version !== 'latest'),
})
}

0 comments on commit db5fa75

Please sign in to comment.