mirror of
https://github.com/R0m1k3/LogiFlow.git
synced 2026-10-15 03:09:32 +02:00
Remove excess console logs from user management features
Remove console.log statements used for debugging in user creation, retrieval, and update operations across frontend and backend. Replit-Commit-Author: Agent Replit-Commit-Session-Id: c52a701b-4841-4d00-b8cf-5a41c12abdf3 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/c52a701b-4841-4d00-b8cf-5a41c12abdf3/zOtcEz8
This commit is contained in:
1 parent
6f4f53c9a9
commit
8de35b9709
3 files changed
+3
-71
No files matched your search
@@ -79,13 +79,6 @@ export default function UsersPage() {
|
||||
|
||||
|
||||
// Protection React Error #310 - Vérification Array pour users et groups
|
||||
console.log('👥 Users page data:', {
|
||||
usersLoading,
|
||||
usersCount: Array.isArray(users) ? users.length : 'NOT_ARRAY',
|
||||
groupsCount: Array.isArray(groups) ? groups.length : 'NOT_ARRAY',
|
||||
usersType: typeof users,
|
||||
groupsType: typeof groups
|
||||
});
|
||||
|
||||
// Protection: s'assurer que users et groups sont des arrays
|
||||
const safeUsers = Array.isArray(users) ? users : [];
|
||||
@@ -125,8 +118,6 @@ export default function UsersPage() {
|
||||
|
||||
const updateUserMutation = useMutation({
|
||||
mutationFn: async (data: { id: string; updates: any }) => {
|
||||
console.log('🔄 Frontend updateUser mutation:', data);
|
||||
|
||||
// Nettoyer les données côté frontend avant envoi
|
||||
const cleanedUpdates: any = {};
|
||||
for (const [key, value] of Object.entries(data.updates)) {
|
||||
@@ -138,8 +129,6 @@ export default function UsersPage() {
|
||||
}
|
||||
}
|
||||
|
||||
console.log('📤 Sending cleaned data:', cleanedUpdates);
|
||||
|
||||
const response = await apiRequest(`/api/users/${data.id}`, "PUT", cleanedUpdates);
|
||||
return response;
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user