fix: make download page show 10 latest versions instead of 10 first versions
This commit is contained in:
parent
637ca26aa7
commit
c614379252
1 changed files with 1 additions and 1 deletions
|
@ -71,7 +71,7 @@ const DownloadPage: React.FC = async () => {
|
|||
</TableHeader>
|
||||
<TableBody>
|
||||
{downloads
|
||||
.slice(0, 10)
|
||||
.slice(downloads.length - 10 < 0 ? 0 : downloads.length - 10)
|
||||
.reverse()
|
||||
.map((download) => (
|
||||
<TableRow key={download._id}>
|
||||
|
|
Loading…
Reference in a new issue