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,6 +434,7 @@ export default class MyEvents extends Vue {
|
|||||||
|
|
||||||
loadMoreFutureParticipations(): void {
|
loadMoreFutureParticipations(): void {
|
||||||
this.futurePage += 1;
|
this.futurePage += 1;
|
||||||
|
if (this.$apollo.queries.futureParticipations) {
|
||||||
this.$apollo.queries.futureParticipations.fetchMore({
|
this.$apollo.queries.futureParticipations.fetchMore({
|
||||||
// New variables
|
// New variables
|
||||||
variables: {
|
variables: {
|
||||||
@ -442,9 +443,11 @@ export default class MyEvents extends Vue {
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
loadMorePastParticipations(): void {
|
loadMorePastParticipations(): void {
|
||||||
this.pastPage += 1;
|
this.pastPage += 1;
|
||||||
|
if (this.$apollo.queries.pastParticipations) {
|
||||||
this.$apollo.queries.pastParticipations.fetchMore({
|
this.$apollo.queries.pastParticipations.fetchMore({
|
||||||
// New variables
|
// New variables
|
||||||
variables: {
|
variables: {
|
||||||
@ -453,6 +456,7 @@ export default class MyEvents extends Vue {
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
eventDeleted(eventid: string): void {
|
eventDeleted(eventid: string): void {
|
||||||
this.futureParticipations = this.futureParticipations.filter(
|
this.futureParticipations = this.futureParticipations.filter(
|
||||||
|
Loading…
Reference in New Issue
Block a user