diff --git a/public/react/src/modules/courses/members/CourseGroupListTable.js b/public/react/src/modules/courses/members/CourseGroupListTable.js index e26e951ce..84edb2fc5 100644 --- a/public/react/src/modules/courses/members/CourseGroupListTable.js +++ b/public/react/src/modules/courses/members/CourseGroupListTable.js @@ -93,7 +93,9 @@ function CourseGroupListTable(props) { width:"27%", className:"color-grey-6", render: (member_manager, record, index) => { - return member_manager + return {record.subStringOfMember_manager || member_manager} } }) const aCol = (isAdmin ? { @@ -193,6 +195,13 @@ function CourseGroupListTable(props) { const course_groups = props.course_groups const columns = buildColumns() + const dataSource = course_groups.map(item => { + return { + ...item, + subStringOfMember_manager : item.member_manager.length > 92 + ? item.member_manager.substring(0, 92) + '...' : null + } + }) return ( {/* onChange={onTableChange} */} -
+
)