diff --git a/ppr-ui/src/views/mhrInformation/MhrInformation.vue b/ppr-ui/src/views/mhrInformation/MhrInformation.vue index 390742339..c167041a9 100644 --- a/ppr-ui/src/views/mhrInformation/MhrInformation.vue +++ b/ppr-ui/src/views/mhrInformation/MhrInformation.vue @@ -1506,21 +1506,16 @@ export default defineComponent({ localState.showTransferType = !localState.showTransferType } - const resetPermitState = () => { - resetValidationState() - resetMhrInformation() - resetTransportPermit(true) - localState.validate = false - } - const handleCancelTransportPermitChanges = (showConfirmationDialog = true) => { if (hasUnsavedChanges.value && showConfirmationDialog) { // show dialog localState.showCancelTransportPermitDialog = true } else { - console.log('Cancel Called') // reset validation and close dialog - resetPermitState() + resetValidationState() + resetMhrInformation() + resetTransportPermit(true) + localState.validate = false } }