CASH-814 | Refactor and bug fix

This commit is contained in:
Scott Kiener 2025-07-09 10:07:29 -04:00
parent 79dba3bdd8
commit 7ab6c46eff

View file

@ -440,7 +440,6 @@ export default {
"update:modelValue", "update:modelValue",
this.getSelectedTimeSlotInfoObject(this.selectedRouteCode) this.getSelectedTimeSlotInfoObject(this.selectedRouteCode)
); );
this.$emit("TimeSlotSelected");
}, },
getRelevantDropOffCmsWidgetNameForSelectedTimeSlot( getRelevantDropOffCmsWidgetNameForSelectedTimeSlot(
selectedRouteCode, selectedRouteCode,
@ -503,7 +502,7 @@ export default {
}; };
}, },
setSelectedRouteCodeFromParent() { setSelectedRouteCodeFromParent() {
if (!this.modelValue?.timeSlot) { if (!this.modelValue?.timeSlot?.routeCode) {
return; return;
} }
const routeCodeFromParent = this.modelValue.timeSlot.routeCode; const routeCodeFromParent = this.modelValue.timeSlot.routeCode;