diff --git a/src/containers/forms/AssignTeamTableCell/index.tsx b/src/containers/forms/AssignTeamTableCell/index.tsx index 14cb92fd7f..f13a3f0649 100644 --- a/src/containers/forms/AssignTeamTableCell/index.tsx +++ b/src/containers/forms/AssignTeamTableCell/index.tsx @@ -19,6 +19,7 @@ import organizationsReducer, { reducerName as organizationsReducerName, } from '../../../store/ducks/opensrp/organizations'; import { getButtonId, getFormName } from './helpers'; +import './style.css'; reducerRegistry.register(assignmentReducerName, assignmentReducer); reducerRegistry.register(organizationsReducerName, organizationsReducer); @@ -95,10 +96,20 @@ const AssignTeamTableCell = (props: AssignTeamCellProps) => { target: getButtonId(jurisdictionId), }; + const assignedOrganizations = assignments + .map( + (a: Assignment) => + organizationsById && + organizationsById[a.organization] && + organizationsById[a.organization].name + ) + .filter(org => !!org) + .join(', '); + return ( -