Merge pull request #980 from strapi/fix-ctm-limit

Changing the limit in the content manager
This commit is contained in:
Jim LAURIE 2018-04-20 12:28:24 +02:00 committed by GitHub
commit 1cf5c518ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -142,7 +142,7 @@ export class ListPage extends React.Component {
const { history, listPage: { params } } = this.props;
const search =
e.target.name === 'params.limit'
? `page=${params.currentPage}&limit=${e.target.value}&sort=${params.sort}&source=${this.getSource()}`
? `page=${params.page}&limit=${e.target.value}&sort=${params.sort}&source=${this.getSource()}`
: `page=${e.target.value}&limit=${params.limit}&sort=${params.sort}&source=${this.getSource()}`;
this.props.history.push({
pathname: history.pathname,