From 66f2c5586f72360074d2a86c4bbd477df33ee184 Mon Sep 17 00:00:00 2001 From: Pavel Meyer Date: Wed, 11 Dec 2024 13:56:19 +0300 Subject: [PATCH] CW-mention-streams Fix internalClick --- src/pages/commonFeed/components/FeedLayout/FeedLayout.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/commonFeed/components/FeedLayout/FeedLayout.tsx b/src/pages/commonFeed/components/FeedLayout/FeedLayout.tsx index 62daad7df..0a1d585e1 100644 --- a/src/pages/commonFeed/components/FeedLayout/FeedLayout.tsx +++ b/src/pages/commonFeed/components/FeedLayout/FeedLayout.tsx @@ -701,7 +701,7 @@ const FeedLayout: ForwardRefRenderFunction = ( const messageId = data.params[QueryParamKey.Message]; if(discussionItemId) { - const feedItem = allFeedItems.find((item) => (item as FeedItemFollowLayoutItem)?.feedItem?.data.id === discussionItemId); + const feedItem = allFeedItems.find((item) => (item as FeedItemFollowLayoutItem)?.feedItem?.data.id === discussionItemId || (item as FeedItemFollowLayoutItem)?.feedItem?.id === itemId); const feedItemId = feedItem?.itemId; if(feedItemId) { handleFeedItemClick(feedItemId, {