fix: crashing on own channel while pending

Some strange behavior occurs for a pending publish + viewing own channel - this is the easiest solution so it doesn't crash right now.
This commit is contained in:
Thomas Zarebczan 2019-09-20 17:13:18 -04:00 committed by Sean Yesmunt
parent 8bdf2b0461
commit e36feb74fb

View file

@ -67,7 +67,7 @@ function ChannelContent(props: Props) {
{!channelIsMine && <HiddenNsfwClaims className="card__subtitle" uri={uri} />} {!channelIsMine && <HiddenNsfwClaims className="card__subtitle" uri={uri} />}
{hasContent && !channelIsBlocked && !channelIsBlackListed && ( {hasContent && !channelIsBlocked && !channelIsBlackListed && (
<ClaimList header={false} uris={claimsInChannel.map(claim => claim.canonical_url)} /> <ClaimList header={false} uris={claimsInChannel.map(claim => claim && claim.canonical_url)} />
)} )}
{!channelIsBlocked && !channelIsBlackListed && ( {!channelIsBlocked && !channelIsBlackListed && (
<Paginate <Paginate