fix repostedUri being passed in as "null" which breaks discover pages

This commit is contained in:
Sean Yesmunt 2020-03-24 14:49:42 -04:00
parent 4368eb4c5c
commit 6c93d3caeb

View file

@ -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),