fix: handle nested data.data response from hackathon admin API
This commit is contained in:
@@ -158,7 +158,7 @@ function HackathonTeamsPage() {
|
||||
}, [])
|
||||
|
||||
const filteredData = useMemo(() => {
|
||||
return teamsResponse?.data || []
|
||||
return teamsResponse?.data?.data || teamsResponse?.data || []
|
||||
}, [teamsResponse])
|
||||
|
||||
const columns: ColumnDef<TeamType>[] = useMemo(
|
||||
|
||||
Reference in New Issue
Block a user