File tree Expand file tree Collapse file tree 2 files changed +1
-4
lines changed Expand file tree Collapse file tree 2 files changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -15,11 +15,9 @@ export default async function Page({
1515} : {
1616 searchParams ?: {
1717 query ?: string ;
18- page ?: string ;
1918 } ;
2019} ) {
2120 const query = searchParams ?. query || '' ;
22- const currentPage = Number ( searchParams ?. page ) || 1 ;
2321
2422 const customers = await fetchFilteredCustomers ( query ) ;
2523
@@ -28,7 +26,7 @@ export default async function Page({
2826 < div className = "flex w-full items-center justify-between" >
2927 < h1 className = { `${ lusitana . className } text-2xl ${ darkTheme . title } ` } > Customers</ h1 >
3028 </ div >
31- < Suspense key = { query + currentPage } fallback = { < InvoicesTableSkeleton /> } >
29+ < Suspense key = { query } fallback = { < InvoicesTableSkeleton /> } >
3230 < Table customers = { customers } />
3331 </ Suspense >
3432 </ div >
Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ export default function Search({ placeholder }: { placeholder: string }) {
1212
1313 const handleSearch = useDebouncedCallback ( ( term ) => {
1414 const params = new URLSearchParams ( searchParams ) ;
15- params . set ( 'page' , '1' ) ;
1615 if ( term ) {
1716 params . set ( 'query' , term ) ;
1817 } else {
You can’t perform that action at this time.
0 commit comments