From 850630092a59e5a99c205d50befcb3f969f39275 Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Sun, 2 Sep 2018 10:39:26 +0200 Subject: [PATCH] Fixed selected tags lost when chaning page --- src/short-urls/ShortUrlsList.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/short-urls/ShortUrlsList.js b/src/short-urls/ShortUrlsList.js index de3720ea..e68160e6 100644 --- a/src/short-urls/ShortUrlsList.js +++ b/src/short-urls/ShortUrlsList.js @@ -83,10 +83,10 @@ export class ShortUrlsListComponent extends React.Component { } componentDidMount() { - const { match: { params }, location } = this.props; + const { match: { params }, location, shortUrlsListParams } = this.props; const query = qs.parse(location.search, { ignoreQueryPrefix: true }); - this.refreshList({ page: params.page, tags: query.tag ? [ query.tag ] : [] }); + this.refreshList({ page: params.page, tags: query.tag ? [ query.tag ] : shortUrlsListParams.tags }); } renderShortUrls() {