Skip to content

[BUG] - sorting doesn't work with Next 15 #640

@u0-blip

Description

@u0-blip

Description

When click sort on column in NextAdmin, with Nextjs 15.5.2, getting the following error.

Image

Runtime TypeError
Server

Cannot use 'in' operator to search for 'asc' in undefined

app/admin/[[...nextadmin]]/page.tsx (21:26) @ AdminPage

19 | const searchParams = await props.searchParams;
20 |

21 | const nextAdminProps = await getNextAdminProps({
| ^
22 | params: params.nextadmin,
23 | searchParams,
24 | basePath: "/admin",
Call Stack
6

Show 5 ignore-listed frame(s)
AdminPage
app/admin/[[...nextadmin]]/page.tsx (21:26)

Reproduction URL

https://github.com/u0-blip/ESB-front-new

Reproduction steps

1. open Next-admin page
2. click on a column for sorting
3. encounter issue

Next router

Page router

Next Admin version

8.3.0

Screenshots

![DESCRIPTION](LINK.png)

Next Admin options

Logs

Browsers

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions