From 7c7c2aa053aa2803677654307fff9c1c1e3855dd Mon Sep 17 00:00:00 2001 From: zeppi Date: Mon, 14 Feb 2022 22:57:19 -0500 Subject: [PATCH] fix comment pinning --- ui/component/commentMenuList/view.jsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ui/component/commentMenuList/view.jsx b/ui/component/commentMenuList/view.jsx index 83994eb0a..115b1fffd 100644 --- a/ui/component/commentMenuList/view.jsx +++ b/ui/component/commentMenuList/view.jsx @@ -21,7 +21,6 @@ type Props = { // --- select --- claim: ?Claim, claimIsMine: boolean, - contentChannelPermanentUrl: any, activeChannelClaim: ?ChannelClaim, playingUri: ?PlayingUri, moderationDelegatorsById: { [string]: { global: boolean, delegators: { name: string, claimId: string } } }, @@ -44,7 +43,6 @@ function CommentMenuList(props: Props) { commentIsMine, commentId, activeChannelClaim, - contentChannelPermanentUrl, isTopLevel, isPinned, playingUri, @@ -62,6 +60,7 @@ function CommentMenuList(props: Props) { } = props; const contentChannelClaim = getChannelFromClaim(claim); + const contentChannelPermanentUrl = contentChannelClaim && contentChannelClaim.permanent_url; const activeModeratorInfo = activeChannelClaim && moderationDelegatorsById[activeChannelClaim.claim_id]; const activeChannelIsCreator = activeChannelClaim && activeChannelClaim.permanent_url === contentChannelPermanentUrl; const activeChannelIsAdmin = activeChannelClaim && activeModeratorInfo && activeModeratorInfo.global;