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>
|
</TableHeader>
|
||||||
<TableBody>
|
<TableBody>
|
||||||
{downloads
|
{downloads
|
||||||
.slice(0, 10)
|
.slice(downloads.length - 10 < 0 ? 0 : downloads.length - 10)
|
||||||
.reverse()
|
.reverse()
|
||||||
.map((download) => (
|
.map((download) => (
|
||||||
<TableRow key={download._id}>
|
<TableRow key={download._id}>
|
||||||
|
|
Loading…
Reference in a new issue