Merge pull request #45629 from mihir-kandoi/st30495

fix: attribute 'msgbox' not found in sales invoice.js
This commit is contained in:
rohitwaghchaure
2025-01-31 12:03:47 +05:30
committed by GitHub

View File

@@ -65,7 +65,7 @@ erpnext.accounts.SalesInvoiceController = class SalesInvoiceController extends (
refresh(doc, dt, dn) {
const me = this;
super.refresh();
if (this.frm.msgbox && this.frm.msgbox.$wrapper.is(":visible")) {
if (this.frm?.msgbox && this.frm.msgbox.$wrapper.is(":visible")) {
// hide new msgbox
this.frm.msgbox.hide();
}