use correct url for navigation (fixes issue with reposts)
This commit is contained in:
parent
f1742eca25
commit
bbba62317e
1 changed files with 2 additions and 1 deletions
|
@ -58,7 +58,8 @@ function ClaimPreviewTile(props: Props) {
|
||||||
const shouldFetch = claim === undefined;
|
const shouldFetch = claim === undefined;
|
||||||
const thumbnailUrl = useGetThumbnail(uri, claim, streamingUrl, getFile, placeholder) || thumbnail;
|
const thumbnailUrl = useGetThumbnail(uri, claim, streamingUrl, getFile, placeholder) || thumbnail;
|
||||||
const claimsInChannel = (claim && claim.meta.claims_in_channel) || 0;
|
const claimsInChannel = (claim && claim.meta.claims_in_channel) || 0;
|
||||||
const navigateUrl = uri ? formatLbryUrlForWeb(uri) : undefined;
|
const navigateUrl = claim ? formatLbryUrlForWeb(claim.canonical_url) : undefined;
|
||||||
|
|
||||||
const navLinkProps = {
|
const navLinkProps = {
|
||||||
to: navigateUrl,
|
to: navigateUrl,
|
||||||
onClick: e => e.stopPropagation(),
|
onClick: e => e.stopPropagation(),
|
||||||
|
|
Loading…
Reference in a new issue