Skip to content

Commit

Permalink
Merge pull request #2081 from daostack/CW-2061-home-infinite-loader
Browse files Browse the repository at this point in the history
Infinite loader when clicking the Home link inside itself#2061
  • Loading branch information
andreymikhadyuk authored Sep 18, 2023
2 parents a44d6eb + 10993cc commit 63d0bfb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/pages/commonFeed/components/FeedLayout/FeedLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,10 @@ const FeedLayout: ForwardRefRenderFunction<FeedLayoutRef, FeedLayoutProps> = (
) => {
const { commonId, messageId } = options;

if (chatItem?.feedItemId === feedItemId && !messageId) {
return;
}

if (commonId && commonId !== outerCommon?.id) {
history.push(
getCommonPagePath(commonId, {
Expand Down

0 comments on commit 63d0bfb

Please sign in to comment.