mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-09-01 01:35:11 +00:00
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 select = (state, props) => {
|
||||||
const urlParams = new URLSearchParams(props.location.search);
|
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 {
|
return {
|
||||||
followedTags: selectFollowedTags(state),
|
followedTags: selectFollowedTags(state),
|
||||||
|
|
Loading…
Add table
Reference in a new issue