Prod/Dev mode

This commit is contained in:
James Pattinson
2025-11-11 16:59:58 +00:00
parent d173b13bb9
commit d42b7cb307
6 changed files with 140 additions and 11 deletions

View File

@@ -112,7 +112,7 @@ const Dashboard: React.FC = () => {
const handleUpdateUserRole = async (userId: number, newRole: string) => {
try {
await userService.updateUserRole(userId, newRole);
await userService.updateUser(userId, { role: newRole });
// Reload data to reflect changes
await loadData();
} catch (error) {