diff options
Diffstat (limited to 'resources/js')
-rw-r--r-- | resources/js/components/reservation.vue | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/resources/js/components/reservation.vue b/resources/js/components/reservation.vue index d733c9d..5389e1a 100644 --- a/resources/js/components/reservation.vue +++ b/resources/js/components/reservation.vue @@ -25,15 +25,18 @@ export default { props: [ 'reservationIndex' ], data() { return { - reservation: this.$store.getters.getData[this.reservationIndex] + reservation: {} } }, + mounted() { + this.reservation = _.cloneDeep(this.$store.getters.getData[this.reservationIndex]); + }, methods: { updateRow() { }, restoreRow() { - + this.reservation = _.cloneDeep(this.$store.getters.getData[this.reservationIndex]); }, deleteRow() { |