Code review fixes

pull/9399/head
john.bednarczyk 8 months ago
parent ecfcf2ef63
commit d2bec49664

@ -54,7 +54,7 @@ class CollectionOverviews extends Component {
posterWidth: 162, posterWidth: 162,
posterHeight: 238, posterHeight: 238,
rowHeight: calculateRowHeight(238, null, props.isSmallScreen, {}), rowHeight: calculateRowHeight(238, null, props.isSmallScreen, {}),
navigateToId: props.location.state ? props.location.state.navigateToId : 0 navigateToId: props.location.state?.navigateToId ?? 0
}; };
this._grid = null; this._grid = null;

@ -51,7 +51,7 @@ MovieCollectionLabel.propTypes = {
title: PropTypes.string.isRequired, title: PropTypes.string.isRequired,
monitored: PropTypes.bool.isRequired, monitored: PropTypes.bool.isRequired,
onMonitorTogglePress: PropTypes.func.isRequired, onMonitorTogglePress: PropTypes.func.isRequired,
tmdbId: PropTypes.string.isRequired tmdbId: PropTypes.number.isRequired
}; };
export default MovieCollectionLabel; export default MovieCollectionLabel;

Loading…
Cancel
Save