Remove duplicate pinned post record

- Maintain consistent orderBy for fetchMore
This commit is contained in:
mattwr18 2019-10-24 09:58:22 +02:00
parent c40d6a80a6
commit a923cb2e62

View File

@ -146,7 +146,7 @@ export default {
offset: this.offset,
filter: this.finalFilters,
first: this.pageSize,
orderBy: this.orderBy,
orderBy: ['pinned_asc', this.orderBy],
},
updateQuery: (previousResult, { fetchMoreResult }) => {
if (!fetchMoreResult || fetchMoreResult.Post.length < this.pageSize) {