From d20ade79474537015c9ed801714d1f307a9fb9eb Mon Sep 17 00:00:00 2001 From: Gabriel Hernandez Date: Thu, 25 Sep 2025 15:46:07 +0100 Subject: [PATCH] fix the actor for the resend config profile activity (#33356) resolves #32686 a quick fix to the resend config profile activity to support not having the actor user name --- .../GlobalActivityItem/GlobalActivityItem.tsx | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/frontend/pages/DashboardPage/cards/ActivityFeed/GlobalActivityItem/GlobalActivityItem.tsx b/frontend/pages/DashboardPage/cards/ActivityFeed/GlobalActivityItem/GlobalActivityItem.tsx index 322831093c..10412e7471 100644 --- a/frontend/pages/DashboardPage/cards/ActivityFeed/GlobalActivityItem/GlobalActivityItem.tsx +++ b/frontend/pages/DashboardPage/cards/ActivityFeed/GlobalActivityItem/GlobalActivityItem.tsx @@ -1061,11 +1061,13 @@ const TAGGED_TEMPLATES = { }, resentConfigProfile: (activity: IActivity) => { + const actor = activity.actor_full_name + ? activity.actor_full_name + : "An end user"; return ( <> - {" "} - resent {activity.details?.profile_name} configuration profile to{" "} - {activity.details?.host_display_name}. + {actor} resent {activity.details?.profile_name} configuration + profile to {activity.details?.host_display_name}. ); }, @@ -1941,11 +1943,12 @@ const GlobalActivityItem = ({ ) : ( DEFAULT_ACTOR_DISPLAY ); - // MdmEnrolled and MdmUnenroll activities have more complicated logic to + // these activities have more complicated logic to // determine if we display the actor name so we will handle that in the // template function case ActivityType.MdmUnenrolled: case ActivityType.MdmEnrolled: + case ActivityType.ResentConfigurationProfile: return null; default: return DEFAULT_ACTOR_DISPLAY;