mirror of
https://github.com/Prowlarr/Prowlarr
synced 2026-04-21 20:30:50 +02:00
Fixed: Sorting on mobile search UI
This commit is contained in:
parent
4175c2577e
commit
f386ddb806
2 changed files with 4 additions and 6 deletions
|
|
@ -49,7 +49,7 @@ class SearchIndexOverviews extends Component {
|
|||
this._grid &&
|
||||
(prevState.width !== width ||
|
||||
prevState.rowHeight !== rowHeight ||
|
||||
hasDifferentItemsOrOrder(prevProps.items, items)
|
||||
hasDifferentItemsOrOrder(prevProps.items, items, 'guid')
|
||||
)
|
||||
) {
|
||||
// recomputeGridSize also forces Grid to discard its cache of rendered cells
|
||||
|
|
@ -93,7 +93,6 @@ class SearchIndexOverviews extends Component {
|
|||
cellRenderer = ({ key, rowIndex, style }) => {
|
||||
const {
|
||||
items,
|
||||
sortKey,
|
||||
showRelativeDates,
|
||||
shortDateFormat,
|
||||
longDateFormat,
|
||||
|
|
@ -117,7 +116,6 @@ class SearchIndexOverviews extends Component {
|
|||
<SearchIndexItemConnector
|
||||
key={release.guid}
|
||||
component={SearchIndexOverview}
|
||||
sortKey={sortKey}
|
||||
rowHeight={rowHeight}
|
||||
showRelativeDates={showRelativeDates}
|
||||
shortDateFormat={shortDateFormat}
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ const mapDispatchToProps = {
|
|||
dispatchExecuteCommand: executeCommand
|
||||
};
|
||||
|
||||
class MovieIndexItemConnector extends Component {
|
||||
class SearchIndexItemConnector extends Component {
|
||||
|
||||
//
|
||||
// Render
|
||||
|
|
@ -66,9 +66,9 @@ class MovieIndexItemConnector extends Component {
|
|||
}
|
||||
}
|
||||
|
||||
MovieIndexItemConnector.propTypes = {
|
||||
SearchIndexItemConnector.propTypes = {
|
||||
guid: PropTypes.string,
|
||||
component: PropTypes.elementType.isRequired
|
||||
};
|
||||
|
||||
export default connect(createMapStateToProps, mapDispatchToProps)(MovieIndexItemConnector);
|
||||
export default connect(createMapStateToProps, mapDispatchToProps)(SearchIndexItemConnector);
|
||||
|
|
|
|||
Loading…
Reference in a new issue