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>
|
</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>
|
||||||
|
|
Loading…
Reference in a new issue