From f5c581e799c6a8e6f7e573d228b66a80f1a500bf Mon Sep 17 00:00:00 2001 From: Julien Froidefond Date: Fri, 7 Mar 2025 08:21:27 +0100 Subject: [PATCH] fix : await on params for page reader --- src/app/books/[bookId]/page.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/app/books/[bookId]/page.tsx b/src/app/books/[bookId]/page.tsx index c05cfca..4a218ce 100644 --- a/src/app/books/[bookId]/page.tsx +++ b/src/app/books/[bookId]/page.tsx @@ -10,8 +10,9 @@ import { AppError } from "@/utils/errors"; async function BookPage({ params }: { params: { bookId: string } }) { try { - const data: KomgaBookWithPages = await BookService.getBook(params.bookId); - const nextBook = await BookService.getNextBook(params.bookId, data.book.seriesId); + const { bookId } = await params; + const data: KomgaBookWithPages = await BookService.getBook(bookId); + const nextBook = await BookService.getNextBook(bookId, data.book.seriesId); return ( }>