Skip to content

Commit

Permalink
BUGFIX: Error in empty latest articles
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebobo committed Jan 26, 2021
1 parent 3cd5bde commit e153329
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Resources/Private/Fusion/Components/Feed.fusion
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ prototype(Shel.Blog:Component.Feed) < prototype(Neos.Neos:ContentComponent) {
feedEntries.@process {
filterByCategory = ${this.category && value ? q(value).filterByReference(this.category, 'categories').get() : value}
sort = ${value ? q(value).sortBlogEntries('publicationDate', this.sortingDirection == 'descending' ? 'DESC' : 'ASC') : value}
slice = ${this.limit > 0 ? value.slice(0, this.limit) : value}
get = ${value.get()}
slice = ${(value && this.limit > 0) ? value.slice(0, this.limit) : value}
get = ${value ? value.get() : []}
}

# Create condition if paginated feed should be rendered
Expand Down

0 comments on commit e153329

Please sign in to comment.