Skip to content
Snippets Groups Projects
Commit eb799621 authored by Bogdan Cochior's avatar Bogdan Cochior
Browse files

fix(reports): fix page jumping on show more/less by adding id and index

parent 33ce29c4
No related branches found
No related tags found
1 merge request!10Sprint #12
...@@ -50,7 +50,10 @@ const ReviewReportCard = ({ ...@@ -50,7 +50,10 @@ const ReviewReportCard = ({
<Label>Report Text</Label> <Label>Report Text</Label>
</Row> </Row>
<Row> <Row>
<ShowMore content={publicComment.content} id="public-content" /> <ShowMore
content={publicComment.content}
id={`public-content-${i}`}
/>
</Row> </Row>
</Fragment> </Fragment>
)} )}
...@@ -77,7 +80,10 @@ const ReviewReportCard = ({ ...@@ -77,7 +80,10 @@ const ReviewReportCard = ({
<Label>Confidential Note</Label> <Label>Confidential Note</Label>
</Row> </Row>
<Row> <Row>
<ShowMore content={privateComment.content} id="private-content" /> <ShowMore
content={privateComment.content}
id={`private-content-${i}`}
/>
</Row> </Row>
</Fragment> </Fragment>
)} )}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment