From 7cac5331ddb5b221ce0419e8339452e0ce0b0963 Mon Sep 17 00:00:00 2001 From: Joey Berkovitz Date: Wed, 13 May 2020 16:47:46 -0400 Subject: [PATCH] Fix uninitialized client --- spring/src/main/js/reservdjs/src/components/ReservationList.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring/src/main/js/reservdjs/src/components/ReservationList.vue b/spring/src/main/js/reservdjs/src/components/ReservationList.vue index 681c389..d4e8be6 100644 --- a/spring/src/main/js/reservdjs/src/components/ReservationList.vue +++ b/spring/src/main/js/reservdjs/src/components/ReservationList.vue @@ -83,6 +83,7 @@ name: "ReservationList", props: ['reservations', 'restView'], created() { + this.resClient = this.$store.getters.grpc.reservationClient; this.curUser = JSON.parse(atob(this.$store.getters.user.authToken.split('.')[1])).sub; this.filterData.date = new Date(); this.filterData.date.setHours(0); @@ -136,7 +137,6 @@ return ""; }, cancel(reservation) { - this.resClient = this.$store.getters.grpc.reservationClient; reservation.setStatus(Reservation.ReservationStatus.CANCELLED); this.resClient.setReservation(reservation, {}, err => { if(err) {