Skip to content

Commit

Permalink
Merge pull request #2159 from webkom/nodup-pinned
Browse files Browse the repository at this point in the history
Dont show pinned article twice on articles
  • Loading branch information
LudvigHz authored Apr 2, 2021
2 parents 62c00ac + 8cbf37a commit cf19e70
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/routes/overview/components/Overview.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ class Overview extends Component<Props, State> {
{frontpage
.filter((item) => item.documentType === 'article')
.filter((article) => !article.tags.includes('weekly'))
.filter((article) => article.id !== pinned.id)
.slice(0, this.state.articlesToShow)
.map((article) => (
<ArticleItem
Expand Down

0 comments on commit cf19e70

Please sign in to comment.