assigment and reports groundwork
This commit is contained in:
1 parent
74f0d0dbed
commit
06973ccfb2
9 files changed
+299
-49
No files matched your search
@@ -71,7 +71,7 @@ export function ReportFilters({
|
||||
);
|
||||
if (clientsRes.ok) {
|
||||
const clientsData = await clientsRes.json();
|
||||
setUsers(clientsData.users || []);
|
||||
setUsers(clientsData.data?.users || []);
|
||||
}
|
||||
} else {
|
||||
setUsers([]);
|
||||
@@ -82,7 +82,7 @@ export function ReportFilters({
|
||||
const clientsRes = await fetch("/api/users?role=client");
|
||||
if (clientsRes.ok) {
|
||||
const clientsData = await clientsRes.json();
|
||||
setUsers(clientsData.users || []);
|
||||
setUsers(clientsData.data?.users || []);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user