CSR-2035
CSR-2035 The fees get removed on insurance orders causing the findindex on supportingitems to throw a script error.
This commit is contained in:
parent
aec4547c31
commit
5333200395
2 changed files with 6 additions and 5 deletions
|
|
@ -129,11 +129,6 @@ export async function navigateToHeritageFunnel({ shouldSaveSession, pageNameToLo
|
|||
heritageParms["forceEndToEndInsurance"] = true;
|
||||
}
|
||||
|
||||
// if they are going to heritage and already have a policy number then this is a nav back flow
|
||||
if (store.getters.policy.policyNumber) {
|
||||
heritageParms["insuranceNavBack"] = true;
|
||||
}
|
||||
|
||||
router.navigateToExternalUrl(externalUrls.HERITAGE_FUNNEL, heritageParms);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -458,6 +458,12 @@ export default {
|
|||
},
|
||||
updateAndSaveSupportingItems() {
|
||||
const supportingItems = store.getters.lineItems.supportingItems;
|
||||
|
||||
// for insurance orders, fees can get removed causing supportingitems to be null or empty
|
||||
if (!supportingItems){
|
||||
return;
|
||||
}
|
||||
|
||||
// if we have a mobile fee, then save/update supporting items
|
||||
if (this.selectedAppointmentType == "Mobile") {
|
||||
const mobileFeeIndex = supportingItems.findIndex(
|
||||
|
|
|
|||
Loading…
Reference in a new issue