CASH-152: fixes to avoid null checks on service package question and quote modals
This commit is contained in:
parent
914c187086
commit
127e7b19b5
2 changed files with 2 additions and 2 deletions
|
|
@ -135,7 +135,7 @@ export default {
|
||||||
},
|
},
|
||||||
closeModal() {
|
closeModal() {
|
||||||
const modal = Modal.getInstance(document.getElementById(this.modalId));
|
const modal = Modal.getInstance(document.getElementById(this.modalId));
|
||||||
modal.hide();
|
modal?.hide();
|
||||||
this.$emit("isModalOpened", false);
|
this.$emit("isModalOpened", false);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -56,7 +56,7 @@ export default {
|
||||||
},
|
},
|
||||||
unmounted() {
|
unmounted() {
|
||||||
// remove any modal effects before leaving page (e.g. user hits browser back button)
|
// remove any modal effects before leaving page (e.g. user hits browser back button)
|
||||||
this.modal.closeModal();
|
this.modal?.closeModal();
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
buttonText() {
|
buttonText() {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue