Skip to content

Commit

Permalink
Fix uninitialized client
Browse files Browse the repository at this point in the history
  • Loading branch information
joeyberkovitz committed May 13, 2020
1 parent 676b5ea commit 7cac533
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 7cac533

Please sign in to comment.