diff --git a/components/admin/management/tree-category-header.tsx b/components/admin/management/tree-category-header.tsx index 77af784..5db9097 100644 --- a/components/admin/management/tree-category-header.tsx +++ b/components/admin/management/tree-category-header.tsx @@ -66,7 +66,7 @@ export function TreeCategoryHeader({ {itemCount} {itemLabel} {itemCount > 1 ? "s" : ""} - {isDirection && onDelete && canDelete && ( + {isDirection && onDelete && ( diff --git a/components/admin/teams/teams-list.tsx b/components/admin/teams/teams-list.tsx index 202757d..c143cf6 100644 --- a/components/admin/teams/teams-list.tsx +++ b/components/admin/teams/teams-list.tsx @@ -50,7 +50,7 @@ export function TeamsList({ itemLabel="équipe" showSeparator={index > 0} onDelete={() => onDeleteDirection(direction)} - canDelete={true} + canDelete={!getDirectionStats(direction).hasMembers} isDirection={true} directionStats={getDirectionStats(direction)} />