Внутри вашего detailPanel
, вместо того, чтобы зацикливаться на всех ваших данных, вам нужно l oop только на features
, которые являются частью текущей строки:
detailPanel={(rowData) => {
return (
<div id="project-features">
<TableContainer component={Paper}>
<Table size="small">
<TableHead>
<TableRow>
<TableCell>Features</TableCell>
</TableRow>
</TableHead>
<TableBody>
{rowData.features.map((feature) => (
<TableRow>
<TableCell component="th" scope="row">
{feature}
</TableCell>
</TableRow>
))}
</TableBody>
</Table>
</TableContainer>
</div>
);
}}