Avoid giving an error page if the apollo futureParticipations query is
undefined Closes #932 Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
83783ad34b
commit
506a6dd4c7
@ -434,24 +434,28 @@ export default class MyEvents extends Vue {
|
|||||||
|
|
||||||
loadMoreFutureParticipations(): void {
|
loadMoreFutureParticipations(): void {
|
||||||
this.futurePage += 1;
|
this.futurePage += 1;
|
||||||
this.$apollo.queries.futureParticipations.fetchMore({
|
if (this.$apollo.queries.futureParticipations) {
|
||||||
// New variables
|
this.$apollo.queries.futureParticipations.fetchMore({
|
||||||
variables: {
|
// New variables
|
||||||
page: this.futurePage,
|
variables: {
|
||||||
limit: this.limit,
|
page: this.futurePage,
|
||||||
},
|
limit: this.limit,
|
||||||
});
|
},
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
loadMorePastParticipations(): void {
|
loadMorePastParticipations(): void {
|
||||||
this.pastPage += 1;
|
this.pastPage += 1;
|
||||||
this.$apollo.queries.pastParticipations.fetchMore({
|
if (this.$apollo.queries.pastParticipations) {
|
||||||
// New variables
|
this.$apollo.queries.pastParticipations.fetchMore({
|
||||||
variables: {
|
// New variables
|
||||||
page: this.pastPage,
|
variables: {
|
||||||
limit: this.limit,
|
page: this.pastPage,
|
||||||
},
|
limit: this.limit,
|
||||||
});
|
},
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
eventDeleted(eventid: string): void {
|
eventDeleted(eventid: string): void {
|
||||||
|
Loading…
Reference in New Issue
Block a user