Skip to content

Commit

Permalink
fix: standard dashboards not loading
Browse files Browse the repository at this point in the history
(cherry picked from commit 313605d)
  • Loading branch information
ankush authored and mergify[bot] committed Nov 6, 2022
1 parent 9b507f8 commit ee1fb87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frappe/public/js/frappe/views/breadcrumbs.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,13 +138,13 @@ frappe.breadcrumbs = {
const doctype_meta = frappe.get_doc("DocType", doctype);
if (
(doctype === "User" && !frappe.user.has_role("System Manager")) ||
(doctype_meta && doctype_meta.issingle)
doctype_meta?.issingle
) {
// no user listview for non-system managers and single doctypes
} else {
let route;
const doctype_route = frappe.router.slug(frappe.router.doctype_layout || doctype);
if (doctype_meta.is_tree) {
if (doctype_meta?.is_tree) {
let view = frappe.model.user_settings[doctype].last_view || "Tree";
route = `${doctype_route}/view/${view}`;
} else {
Expand Down

0 comments on commit ee1fb87

Please sign in to comment.