From 148e46ae6af864431d5d729f793f25eca46a9503 Mon Sep 17 00:00:00 2001 From: Tudor Date: Mon, 2 Feb 2026 21:51:08 +0000 Subject: [PATCH] Fix filters API response structure Backend returns filters directly at top level, not wrapped in 'filters' property. Update FiltersResponse type and page components to match actual API response. Fixes empty dropdowns for school types and local authorities. Co-Authored-By: Claude Sonnet 4.5 --- nextjs-app/app/page.tsx | 2 +- nextjs-app/app/rankings/page.tsx | 2 +- nextjs-app/lib/types.ts | 5 ++--- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/nextjs-app/app/page.tsx b/nextjs-app/app/page.tsx index b26ffc0..1534156 100644 --- a/nextjs-app/app/page.tsx +++ b/nextjs-app/app/page.tsx @@ -48,7 +48,7 @@ export default async function HomePage({ searchParams }: HomePageProps) { return ( ); } catch (error) { diff --git a/nextjs-app/app/rankings/page.tsx b/nextjs-app/app/rankings/page.tsx index e8f865a..2426f11 100644 --- a/nextjs-app/app/rankings/page.tsx +++ b/nextjs-app/app/rankings/page.tsx @@ -49,7 +49,7 @@ export default async function RankingsPage({ searchParams }: RankingsPageProps) return (