fix(user-management): pagination, duplicate profile creation, type fixes

This commit is contained in:
Andrej Spielmann
2026-03-26 17:03:38 +01:00
parent 9c8acfd30e
commit b3a005f3bf
3 changed files with 6 additions and 3 deletions
@@ -41,8 +41,8 @@ export default function UsersPage() {
const fetchUsers = async () => {
try {
const data = await apiFetch<IUser[]>('/auth/users/', { token: token! })
setUsers(data)
const data = await apiFetch<{ results: IUser[] }>('/auth/users/', { token: token! })
setUsers(data.results || [])
} catch {
toast.error('Fehler beim Laden der Benutzer')
} finally {