fix: don't reverse mod list in administration panel

This commit is contained in:
Dorian Niemiec 2024-09-08 09:16:21 +02:00
parent 6d8d779777
commit ae24ae9ef2

View file

@ -261,10 +261,7 @@ const SvrjsModsAdminPage = () => {
</TableRow> </TableRow>
</TableHeader> </TableHeader>
<TableBody> <TableBody>
{mods {mods.map((mod) => (
.slice()
.reverse()
.map((mod) => (
<TableRow key={mod._id}> <TableRow key={mod._id}>
<TableCell className="border-b px-4 py-2"> <TableCell className="border-b px-4 py-2">
{mod.fileName} {mod.fileName}
@ -287,10 +284,7 @@ const SvrjsModsAdminPage = () => {
<TableCell className="border-b px-4 py-2 gap-2 flex-center"> <TableCell className="border-b px-4 py-2 gap-2 flex-center">
<Dialog open={dialogOpen} onOpenChange={setDialogOpen}> <Dialog open={dialogOpen} onOpenChange={setDialogOpen}>
<DialogTrigger> <DialogTrigger>
<Button <Button variant="outline" onClick={() => setEditMod(mod)}>
variant="outline"
onClick={() => setEditMod(mod)}
>
Edit Edit
</Button> </Button>
</DialogTrigger> </DialogTrigger>