fix: dashboard view from workspace

This commit is contained in:
Ponnusamy 2022-11-06 15:00:53 +05:30 committed by GitHub
parent afe992f1e6
commit 9a7e59e811
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -29,7 +29,7 @@ frappe.breadcrumbs = {
return localStorage["preferred_breadcrumbs:" + doctype];
},
add(module, doctype, type) {
async add(module, doctype, type) {
let obj;
if (typeof module === "object") {
obj = module;
@ -40,7 +40,7 @@ frappe.breadcrumbs = {
type: type,
};
}
await frappe.model.with_doctype(doctype);
this.all[frappe.breadcrumbs.current_page()] = obj;
this.update();
},