Merge pull request #2718 from gradido/2708-button-for-chat-with-moderator-incorrect-fetch

fix(frontend): change fetchPolicy, add scripts.update
This commit is contained in:
Alexander Friedland 2023-02-22 09:12:21 +01:00 committed by GitHub
commit 02cdcf8751
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -119,13 +119,13 @@ export default {
query() { query() {
return listAllContributions return listAllContributions
}, },
fetchPolicy: 'network-only',
variables() { variables() {
return { return {
currentPage: this.currentPageAll, currentPage: this.currentPageAll,
pageSize: this.pageSizeAll, pageSize: this.pageSizeAll,
} }
}, },
fetchPolicy: 'no-cache',
update({ listAllContributions }) { update({ listAllContributions }) {
this.contributionCountAll = listAllContributions.contributionCount this.contributionCountAll = listAllContributions.contributionCount
this.itemsAll = listAllContributions.contributionList this.itemsAll = listAllContributions.contributionList