mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-03-18 21:43:49 +00:00
Moved management of filtering options to own reducer
This commit is contained in:
@@ -16,7 +16,14 @@ import './ShortUrlsList.scss';
|
||||
export class ShortUrlsList extends React.Component {
|
||||
componentDidMount() {
|
||||
const { match } = this.props;
|
||||
this.props.listShortUrls(match.params.serverId, { page: match.params.page });
|
||||
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
|
||||
});
|
||||
}
|
||||
|
||||
render() {
|
||||
@@ -129,4 +136,5 @@ class RowMenu extends React.Component {
|
||||
export default connect(state => ({
|
||||
shortUrlsList: state.shortUrlsList,
|
||||
selectedServer: state.selectedServer,
|
||||
shortUrlsListParams: state.shortUrlsListParams,
|
||||
}), { listShortUrls })(ShortUrlsList);
|
||||
|
||||
Reference in New Issue
Block a user