CASH-1214: Clear selectedRouteCode if no time slot is selected
This commit is contained in:
parent
1d79c167ad
commit
e32a1cd9c4
1 changed files with 8 additions and 1 deletions
|
|
@ -206,6 +206,10 @@ export default {
|
||||||
// );
|
// );
|
||||||
// }
|
// }
|
||||||
} else {
|
} else {
|
||||||
|
if (!this.selectedAnswerForTimeSlots && this.selectedRouteCode) {
|
||||||
|
// Clearing selectedRouteCode if no time slot is selected
|
||||||
|
this.resetSelectedTimeSlot();
|
||||||
|
}
|
||||||
appointmentTypeCmsWidgetName = this.selectedRouteCode?.includes(
|
appointmentTypeCmsWidgetName = this.selectedRouteCode?.includes(
|
||||||
PREMIUM_TIME_SLOT_ID_FLAG
|
PREMIUM_TIME_SLOT_ID_FLAG
|
||||||
)
|
)
|
||||||
|
|
@ -552,10 +556,13 @@ export default {
|
||||||
return slot.id === selectedRouteCodeString;
|
return slot.id === selectedRouteCodeString;
|
||||||
});
|
});
|
||||||
if (!matchingTimeSlot) {
|
if (!matchingTimeSlot) {
|
||||||
this.selectedRouteCode = null;
|
this.resetSelectedTimeSlot();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
resetSelectedTimeSlot() {
|
||||||
|
this.selectedRouteCode = null;
|
||||||
|
},
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
waitListRequested(newVal) {
|
waitListRequested(newVal) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue