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