CASH-1712 - attempt to prevent repetitive api calls and initDatePicker when toggling appt types

This commit is contained in:
AdamCaouetteSafelite 2025-10-24 16:22:17 -04:00
parent 4405c1c3f0
commit 55d0ae9a7e

View file

@ -1743,7 +1743,6 @@ export default {
this.lastSelectedInshopOrDropoffProvider = this.selectedProvider;
}
this.appointmentType = AppointmentTypeStrings.MOBILE;
this.updateSelectedProvider();
} else if (newAppointmentType) {
if (this.appointmentType != AppointmentTypeStrings.MOBILE) {
// Clear last shop selected if appointment type was changed in any manner other than from Mobile
@ -1757,9 +1756,6 @@ export default {
} else {
this.appointmentType = AppointmentTypeStrings.IN_SHOP_OR_DROP_OFF;
}
// make sure a selectedProvider exists
this.updateSelectedProvider(this.lastSelectedInshopOrDropoffProvider);
} else {
this.appointmentType = null;
}