fix(incidents): show assignee in AssignmentSection via assigned_users with fallback to assigned_to

This commit is contained in:
ghotso
2025-08-18 23:07:20 +02:00
committed by ghotso
parent 7ff180bea4
commit 58fa09bea7
@@ -31,8 +31,8 @@ export const AssignmentSection: React.FC<AssignmentSectionProps> = ({ incident,
</Avatar> </Avatar>
<span>{assignedUser.full_name || assignedUser.username}</span> <span>{assignedUser.full_name || assignedUser.username}</span>
</div> </div>
) : incident.assigned_to ? ( ) : (incident.assigned_users || incident.assigned_to) ? (
<span>{incident.assigned_to}</span> <span>{incident.assigned_users || incident.assigned_to}</span>
) : ( ) : (
<span className="text-muted-foreground italic">{t('unassigned')}</span> <span className="text-muted-foreground italic">{t('unassigned')}</span>
)} )}