get the title properly
This commit is contained in:
parent
91c60558c6
commit
84e6970799
2 changed files with 2 additions and 2 deletions
2
dist/bundle.es.js
vendored
2
dist/bundle.es.js
vendored
|
@ -2415,7 +2415,7 @@ const makeSelectResolvedRecommendedContentForUri = (uri, size, claimId, claimNam
|
||||||
if (claim) {
|
if (claim) {
|
||||||
// always grab full URL - this can change once search returns canonical
|
// always grab full URL - this can change once search returns canonical
|
||||||
currentUri = buildURI({ streamClaimId: claim.claim_id, streamName: claim.name });
|
currentUri = buildURI({ streamClaimId: claim.claim_id, streamName: claim.name });
|
||||||
const { title } = claim.value;
|
title = claim.value ? claim.value.title : null;
|
||||||
} else {
|
} else {
|
||||||
// for cases on mobile where the claim may not have been resolved ()
|
// for cases on mobile where the claim may not have been resolved ()
|
||||||
currentUri = buildURI({ streamClaimId: claimId, streamName: claimName });
|
currentUri = buildURI({ streamClaimId: claimId, streamName: claimName });
|
||||||
|
|
|
@ -698,7 +698,7 @@ export const makeSelectResolvedRecommendedContentForUri = (
|
||||||
if (claim) {
|
if (claim) {
|
||||||
// always grab full URL - this can change once search returns canonical
|
// always grab full URL - this can change once search returns canonical
|
||||||
currentUri = buildURI({ streamClaimId: claim.claim_id, streamName: claim.name });
|
currentUri = buildURI({ streamClaimId: claim.claim_id, streamName: claim.name });
|
||||||
const { title } = claim.value;
|
title = claim.value ? claim.value.title : null;
|
||||||
} else {
|
} else {
|
||||||
// for cases on mobile where the claim may not have been resolved ()
|
// for cases on mobile where the claim may not have been resolved ()
|
||||||
currentUri = buildURI({ streamClaimId: claimId, streamName: claimName });
|
currentUri = buildURI({ streamClaimId: claimId, streamName: claimName });
|
||||||
|
|
Loading…
Reference in a new issue