Checkpoint: Remplacement du fragment vide <>...</> sans key par <Fragment key={u.id}>...</Fragment> dans le .map() de UsersPanel. Zéro erreur TypeScript, zéro erreur Vite.

This commit is contained in:
Manus
2026-04-16 11:29:06 -04:00
parent 77839a08ff
commit 19852d0907

View File

@@ -17,7 +17,7 @@ import {
Users,
X,
} from "lucide-react";
import { useState, useMemo } from "react";
import { useState, useMemo, Fragment } from "react";
import { toast } from "sonner";
// ─── Types ────────────────────────────────────────────────────────────────────
@@ -307,8 +307,8 @@ function UsersPanel() {
const isExpanded = expandedAffectations === u.id;
return (
<>
<tr key={u.id} className="hover:bg-muted/20 transition-colors">
<Fragment key={u.id}>
<tr className="hover:bg-muted/20 transition-colors">
<td className="px-5 py-3.5">
{isEditing ? (
<input
@@ -447,7 +447,7 @@ function UsersPanel() {
isLoading={etablissementsQuery.isLoading}
/>
)}
</>
</Fragment>
);
})}
</tbody>