Fix SchoolsResponse fallback structure
Use correct top-level pagination properties (page, page_size, total, total_pages) instead of nested pagination object. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -57,7 +57,7 @@ export default async function HomePage({ searchParams }: HomePageProps) {
|
|||||||
// Return error state with empty data
|
// Return error state with empty data
|
||||||
return (
|
return (
|
||||||
<HomeView
|
<HomeView
|
||||||
initialSchools={{ schools: [], pagination: { page: 1, page_size: 50, total: 0, pages: 0 } }}
|
initialSchools={{ schools: [], page: 1, page_size: 50, total: 0, total_pages: 0 }}
|
||||||
filters={{ local_authorities: [], school_types: [], years: [] }}
|
filters={{ local_authorities: [], school_types: [], years: [] }}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user