fix: Company query for number cards

(cherry picked from commit 9f963a2ac730e38dc480a8ecdc523f1af168d956)
This commit is contained in:
Deepesh Garg 2020-05-24 21:55:47 +05:30 committed by mergify-bot
parent 2e7088c29a
commit 5f57f59482

View File

@ -19,7 +19,7 @@ def get_company():
else:
company = frappe.get_list("Company", limit=1)
if company:
return company.name
return company[0].name
return None
def get_dashboards():