CASH-845 add null protection
This commit is contained in:
parent
819e1df086
commit
adb7dd9bed
1 changed files with 1 additions and 1 deletions
|
|
@ -468,7 +468,7 @@ export default {
|
|||
return store.getters.order.customer?.waitListRequested;
|
||||
},
|
||||
autoSelectTimeSlotIfOnlyOneIsAvailable() {
|
||||
const numberOfOptions = this.timeSlotsForSelectedDate.timeSlots?.length;
|
||||
const numberOfOptions = this.timeSlotsForSelectedDate?.timeSlots?.length;
|
||||
if (numberOfOptions === 1) {
|
||||
if (this.availableTimeSlots.length > 0) {
|
||||
this.selectedAnswerForTimeSlots = this.availableTimeSlots[0].value;
|
||||
|
|
|
|||
Loading…
Reference in a new issue