25 ? '358px' : '', whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis', color: item.del ? '#F93920' : '' }}>
- {item.pepProjectName}
+
+ 25 || item?.name?.length > 25 ? '358px' : '', whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis', color: item.del ? '#F93920' : '' }}>
+ {item.pepProjectName || item.name}
)
@@ -102,14 +102,14 @@ const Roles = (props) => {
})
}
{
- row.correlationProject.length > 3 ? (
+ row?.correlationProject?.length > 3 ? (
{
row.correlationProject.map((item, index) => {
return (
- {item.pepProjectName},
+ {item.pepProjectName || item.name},
)
})
@@ -117,7 +117,7 @@ const Roles = (props) => {
} trigger="click" style={{ lineHeight: 2 }}>
- +{row.correlationProject.length - 3}
+ +{row?.correlationProject?.length - 3}