Fix children with the same key and make scrollTop optional

This commit is contained in:
Bogdan 2023-07-24 11:37:23 +03:00
parent f9cb4c1abd
commit bf0f681d46
2 changed files with 3 additions and 3 deletions

View File

@ -258,7 +258,7 @@ CollectionOverviews.propTypes = {
sortKey: PropTypes.string,
overviewOptions: PropTypes.object.isRequired,
jumpToCharacter: PropTypes.string,
scrollTop: PropTypes.number.isRequired,
scrollTop: PropTypes.number,
scroller: PropTypes.instanceOf(Element).isRequired,
showRelativeDates: PropTypes.bool.isRequired,
shortDateFormat: PropTypes.string.isRequired,

View File

@ -100,13 +100,13 @@ class MovieHistoryRow extends Component {
/>
</TableRowCell>
<TableRowCell key={name}>
<TableRowCell>
<MovieFormats
formats={customFormats}
/>
</TableRowCell>
<TableRowCell key={name}>
<TableRowCell>
{formatCustomFormatScore(customFormatScore)}
</TableRowCell>