diff --git a/app/(app)/employees/page.tsx b/app/(app)/employees/page.tsx index 98a8f8c..7051d7e 100644 --- a/app/(app)/employees/page.tsx +++ b/app/(app)/employees/page.tsx @@ -41,12 +41,7 @@ export default async function EmployeesPage({ searchParams }: EmployeesPageProps let query = supabase .from("employees") .select( - // absence_type is deliberately absent here until - // 20260726120000_absence_type.sql has been applied: PostgREST rejects - // the *whole* query for one unknown column, which turned the entire - // list blank rather than just dropping a chip label. The detail page - // selects "*" and shows the specific kind once the column exists. - "id, first_name, last_name, personnel_number, job_title, team_id, division_id, location_id, entry_date, employment_type, weekly_hours, status", + "id, first_name, last_name, personnel_number, job_title, team_id, division_id, location_id, entry_date, employment_type, weekly_hours, status, absence_type", { count: "exact" } ) .order("last_name", { ascending: true }) @@ -135,7 +130,7 @@ export default async function EmployeesPage({ searchParams }: EmployeesPageProps {e.employment_type} ยท {e.weekly_hours}h - + );