Fix SchoolsResponse fallback structure
All checks were successful
Build and Push Docker Images / Build Backend (FastAPI) (push) Successful in 35s
Build and Push Docker Images / Build Frontend (Next.js) (push) Successful in 1m10s
Build and Push Docker Images / Trigger Portainer Update (push) Successful in 1s

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:
Tudor
2026-02-02 21:34:24 +00:00
parent 0571bf3450
commit 9ba49106f8

View File

@@ -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: [] }}
/> />
); );