Skip to content

Commit

Permalink
Merge pull request #38693 from frappe/mergify/bp/version-15-hotfix/pr…
Browse files Browse the repository at this point in the history
…-38692

fix: typeerror on new sites (backport #38692)
  • Loading branch information
ruthra-kumar authored Dec 12, 2023
2 parents 576ff49 + 9239e73 commit b68e1f6
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 b68e1f6

Please sign in to comment.