fix repostedUri being passed in as "null" which breaks discover pages
This commit is contained in:
parent
4368eb4c5c
commit
6c93d3caeb
1 changed files with 2 additions and 1 deletions
|
@ -6,7 +6,8 @@ import Tags from './view';
|
|||
|
||||
const select = (state, props) => {
|
||||
const urlParams = new URLSearchParams(props.location.search);
|
||||
const repostedUri = decodeURIComponent(urlParams.get(CS.REPOSTED_URI_KEY));
|
||||
const repostedUriInUrl = urlParams.get(CS.REPOSTED_URI_KEY);
|
||||
const repostedUri = repostedUriInUrl ? decodeURIComponent(repostedUriInUrl) : undefined;
|
||||
|
||||
return {
|
||||
followedTags: selectFollowedTags(state),
|
||||
|
|
Loading…
Add table
Reference in a new issue