mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2026-04-06 01:25:31 +00:00
Merge pull request #2023 from Human-Connection/2022-fix-pinned-post-appearing-twice-bug
Remove duplicate pinned post record
This commit is contained in:
commit
945033a687
@ -146,7 +146,7 @@ export default {
|
|||||||
offset: this.offset,
|
offset: this.offset,
|
||||||
filter: this.finalFilters,
|
filter: this.finalFilters,
|
||||||
first: this.pageSize,
|
first: this.pageSize,
|
||||||
orderBy: this.orderBy,
|
orderBy: ['pinned_asc', this.orderBy],
|
||||||
},
|
},
|
||||||
updateQuery: (previousResult, { fetchMoreResult }) => {
|
updateQuery: (previousResult, { fetchMoreResult }) => {
|
||||||
if (!fetchMoreResult || fetchMoreResult.Post.length < this.pageSize) {
|
if (!fetchMoreResult || fetchMoreResult.Post.length < this.pageSize) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user