CSR-563 | Fix error if alert fires with no footer rendered

This commit is contained in:
Scott Kiener 2022-05-19 12:04:35 -04:00
parent 428a53fdd2
commit 26d9ed341b
2 changed files with 3 additions and 2 deletions

View file

@ -84,7 +84,7 @@ export default {
}, },
methods: { methods: {
onResize() { onResize() {
this.paddingHeight = document.querySelector(".footer #infoBox").offsetHeight; this.paddingHeight = this.getFooterInfoBoxHeight();
}, },
updateButtonText(newText) { updateButtonText(newText) {
this.customButtontext = newText; this.customButtontext = newText;

View file

@ -43,7 +43,8 @@ export default {
} }
}, },
getFooterInfoBoxHeight() { getFooterInfoBoxHeight() {
return document.querySelector(".footer #infoBox").offsetHeight; const footerInfoBox = document.querySelector(".footer #infoBox");
return footerInfoBox ? footerInfoBox.offsetHeight : 0;
} }
}, },
computed: { computed: {