Skip to content

Commit

Permalink
fix: typeerror on new sites (#38692)
Browse files Browse the repository at this point in the history
(cherry picked from commit fa2d33c)
  • Loading branch information
ruthra-kumar authored and mergify[bot] committed Dec 12, 2023
1 parent 576ff49 commit 9239e73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/public/js/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ $.extend(erpnext, {
if(!company && cur_frm)
company = cur_frm.doc.company;
if(company)
return frappe.get_doc(":Company", company).default_currency || frappe.boot.sysdefaults.currency;
return frappe.get_doc(":Company", company)?.default_currency || frappe.boot.sysdefaults.currency;
else
return frappe.boot.sysdefaults.currency;
},
Expand Down

0 comments on commit 9239e73

Please sign in to comment.