From 52e5cd5ecdba9da1db3bda4068446aeef2cd7cba Mon Sep 17 00:00:00 2001 From: "Sinan Sonmez (Chaush)" <37421564+sinansonmez@users.noreply.github.com> Date: Fri, 2 Jun 2023 11:59:28 +0200 Subject: [PATCH] MM-51585 : Fix duplicated date separator in center channel when Pinned posts RHS is open (#23068) --- webapp/channels/src/components/post/post_component.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/channels/src/components/post/post_component.tsx b/webapp/channels/src/components/post/post_component.tsx index 1b8c0e5335..9fba63cdc4 100644 --- a/webapp/channels/src/components/post/post_component.tsx +++ b/webapp/channels/src/components/post/post_component.tsx @@ -513,7 +513,7 @@ const PostComponent = (props: Props): JSX.Element => { className={props.location === 'SEARCH' ? 'search-item__container' : undefined} data-testid={props.location === 'SEARCH' ? 'search-item-container' : undefined} > - {(isSearchResultItem || props.isPinnedPosts || props.isFlagged) && } + {(isSearchResultItem || (props.location !== Locations.CENTER && props.isPinnedPosts) || props.isFlagged) && }