Skip to content

Commit

Permalink
Merge pull request #2117 from daostack/feature/CW-2105-shared-stream-…
Browse files Browse the repository at this point in the history
…under-pinned

Place a stream from a link right after the pinned streams #2105
  • Loading branch information
andreymikhadyuk authored Sep 26, 2023
2 parents bceb42d + c9f1dc1 commit b94ef03
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pages/commonFeed/CommonFeed.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -188,12 +188,12 @@ const CommonFeedComponent: FC<CommonFeedProps> = (props) => {
(item) => item.itemId !== sharedFeedItemId,
) || [];

if (sharedFeedItem) {
items.push(sharedFeedItem);
}
if (filteredPinnedItems.length > 0) {
items.push(...filteredPinnedItems);
}
if (sharedFeedItem) {
items.push(sharedFeedItem);
}

return items;
}, [sharedFeedItem, sharedFeedItemId, commonPinnedFeedItems]);
Expand Down

0 comments on commit b94ef03

Please sign in to comment.