fix: await search params on incident page
This commit is contained in:
parent
a7921ffffb
commit
56dd48d6b9
1 changed files with 4 additions and 3 deletions
|
|
@ -2,12 +2,13 @@ import { AppShell } from "@/components/app-shell"
|
|||
import { SiteHeader } from "@/components/site-header"
|
||||
import { IncidentWorkspace } from "@/components/incidents/incident-workspace"
|
||||
|
||||
export default function IncidentesPage({
|
||||
export default async function IncidentesPage({
|
||||
searchParams,
|
||||
}: {
|
||||
searchParams?: Record<string, string | string[] | undefined>
|
||||
searchParams: Promise<Record<string, string | string[] | undefined>>
|
||||
}) {
|
||||
const autoOpen = searchParams?.quick === "new"
|
||||
const params = await searchParams
|
||||
const autoOpen = params?.quick === "new"
|
||||
|
||||
return (
|
||||
<AppShell
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue