diff --git a/frontend/pages/hosts/ManageHostsPage/ManageHostsPage.tsx b/frontend/pages/hosts/ManageHostsPage/ManageHostsPage.tsx index 45934c3c39..17befe144d 100644 --- a/frontend/pages/hosts/ManageHostsPage/ManageHostsPage.tsx +++ b/frontend/pages/hosts/ManageHostsPage/ManageHostsPage.tsx @@ -314,7 +314,7 @@ const ManageHostsPage = ({ (scriptBatchExecutionId ? "ran" : undefined); const depProfileError = queryParams?.dep_profile_error; /** URL converts to lowercase but API and UI requires uppercase */ - const depAssignProfileResponse = queryParams?.dep_assign_profile_response.toUpperCase(); + const depAssignProfileResponse = queryParams?.dep_assign_profile_response?.toUpperCase(); // ========= routeParams const { active_label: activeLabel, label_id: labelID } = routeParams;