Skip to content

Commit

Permalink
Additional codemods to match new Next.js 15 async params expectations
Browse files Browse the repository at this point in the history
  • Loading branch information
mluypaert committed Jan 7, 2025
1 parent f792515 commit d4aaf1e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion webui/src/app/progress/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { redirect } from 'next/navigation'

export default async function Page( props: any ) {

const searchParams: Record<string, any> = props.searchParams
const searchParams: Record<string, any> = (await props.searchParams)
const jobUuidStr = searchParams['uuid'] as string

if( !jobUuidStr ){
Expand Down
2 changes: 1 addition & 1 deletion webui/src/app/result/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { redirect } from 'next/navigation'

export default async function Page( props: any ) {

const searchParams: Record<string, any> = props.searchParams
const searchParams: Record<string, any> = (await props.searchParams)
const jobUuidStr = searchParams['uuid'] as string

if( !jobUuidStr ){
Expand Down

0 comments on commit d4aaf1e

Please sign in to comment.