fix: handle nested data.data response from hackathon admin API

This commit is contained in:
maulanasdqn
2026-04-11 18:11:07 +07:00
parent b48f653a97
commit e78002ff69
3 changed files with 3 additions and 3 deletions
@@ -158,7 +158,7 @@ function HackathonTeamsPage() {
}, [])
const filteredData = useMemo(() => {
return teamsResponse?.data || []
return teamsResponse?.data?.data || teamsResponse?.data || []
}, [teamsResponse])
const columns: ColumnDef<TeamType>[] = useMemo(