get the title properly

This commit is contained in:
Akinwale Ariwodola 2020-03-13 17:35:54 +01:00
parent 91c60558c6
commit 84e6970799
2 changed files with 2 additions and 2 deletions

2
dist/bundle.es.js vendored
View file

@ -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 });

View file

@ -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 });