Merge pull request #2023 from Human-Connection/2022-fix-pinned-post-appearing-twice-bug

Remove duplicate pinned post record
This commit is contained in:
mattwr18 2019-10-24 11:24:15 +02:00 committed by GitHub
commit 945033a687
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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) {