fixed bug

This commit is contained in:
AmirHossein Mahmoodi
2024-01-15 16:38:48 +03:30
parent 801e279637
commit b71c6feed4

View File

@@ -74,8 +74,10 @@ const TableContent = ({rowId}) => {
<TableCell>{historyDetails.state_name}</TableCell> <TableCell>{historyDetails.state_name}</TableCell>
<TableCell>{historyDetails.latest_histories[0].expert_description}</TableCell> <TableCell>{historyDetails.latest_histories[0].expert_description}</TableCell>
<TableCell> <TableCell>
{historyDetails.latest_histories[0].attachments.map(attachment => <PrintHistory {historyDetails.latest_histories[0].attachments.map((attachment, index) =>
attachment={attachment}/>)} <PrintHistory
key={index}
attachment={attachment}/>)}
</TableCell> </TableCell>
</TableRow> </TableRow>
{historyDetails.latest_histories.map((latest_history, index) => { {historyDetails.latest_histories.map((latest_history, index) => {
@@ -96,7 +98,8 @@ const TableContent = ({rowId}) => {
<TableCell>{latest_history.previous_state_name}</TableCell> <TableCell>{latest_history.previous_state_name}</TableCell>
<TableCell>{_expert_description}</TableCell> <TableCell>{_expert_description}</TableCell>
<TableCell> <TableCell>
{_attachments.map(attachment => <PrintHistory attachment={attachment}/>)} {_attachments.map((attachment, index) => <PrintHistory key={index}
attachment={attachment}/>)}
</TableCell> </TableCell>
</TableRow>) </TableRow>)
})} })}