fix: don't reverse mod list in administration panel
This commit is contained in:
parent
6d8d779777
commit
ae24ae9ef2
1 changed files with 127 additions and 133 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue