fix: default app logo to frappe if app not found

This commit is contained in:
Sumit Bhanushali 2024-09-27 15:47:58 +05:30
parent b9e204bbbf
commit 481fbb78dc

View file

@ -132,7 +132,7 @@ frappe.ui.Sidebar = class Sidebar {
console.warn("set_current_app: app not defined");
return;
}
let app_data = frappe.boot.app_data_map[app];
let app_data = frappe.boot.app_data_map[app] || frappe.boot.app_data_map["frappe"];
this.wrapper
.find(".app-switcher-dropdown .sidebar-item-icon img")