Updated ApiClient to return pagination data when listing short URLs

This commit is contained in:
Alejandro Celaya
2018-06-17 17:21:47 +02:00
parent 1f157a015b
commit 66a81d7e58
3 changed files with 10 additions and 9 deletions

View File

@@ -16,10 +16,6 @@ import './ShortUrlsList.scss';
export class ShortUrlsList extends React.Component {
componentDidMount() {
const { match } = this.props;
console.log(this.props.shortUrlsListParams, match.params, {
...this.props.shortUrlsListParams,
page: match.params.page
});
this.props.listShortUrls(match.params.serverId, {
...this.props.shortUrlsListParams,
page: match.params.page
@@ -134,7 +130,6 @@ class RowMenu extends React.Component {
}
export default connect(state => ({
shortUrlsList: state.shortUrlsList,
selectedServer: state.selectedServer,
shortUrlsListParams: state.shortUrlsListParams,
}), { listShortUrls })(ShortUrlsList);