Skip to content

Commit

Permalink
Adds Elasticsearch 7 support to CC (#1214)
Browse files Browse the repository at this point in the history
  • Loading branch information
dylankelly committed Jun 20, 2022
1 parent dd900aa commit 4064f95
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1135,6 +1135,7 @@ module.exports = class ContentCollection {
}

getPaginationTotalSteps (state, count) {
return Math.ceil(parseInt(count) / this.getItemsToLoad(state))
const total = typeof count === 'object' && count.hasOwnProperty('value') ? count.value : count
return Math.ceil(parseInt(total) / this.getItemsToLoad(state))
}
}

0 comments on commit 4064f95

Please sign in to comment.