Fix full url
This commit is contained in:
parent
f4fdee8331
commit
e93d734fa3
1 changed files with 5 additions and 1 deletions
|
@ -16,9 +16,13 @@ import LivestreamPage from './view';
|
|||
|
||||
const select = (state, props) => {
|
||||
const { uri } = props;
|
||||
const channelClaimId = getChannelIdFromClaim(selectClaimForUri(state, uri));
|
||||
|
||||
const claim = selectClaimForUri(state, uri);
|
||||
const { canonical_url } = claim || {};
|
||||
const channelClaimId = getChannelIdFromClaim(claim);
|
||||
|
||||
return {
|
||||
uri: canonical_url || '',
|
||||
isAuthenticated: selectUserVerifiedEmail(state),
|
||||
channelClaimId,
|
||||
chatDisabled: makeSelectTagInClaimOrChannelForUri(uri, DISABLE_COMMENTS_TAG)(state),
|
||||
|
|
Loading…
Reference in a new issue