fix: show icon if it is exists

This commit is contained in:
sokumon 2025-11-17 12:19:34 +05:30
parent 39559e8575
commit fe79ab3ee7
2 changed files with 2 additions and 2 deletions

View file

@ -45,7 +45,7 @@ class WorkspaceSidebar(Document):
if not self.user.can_read:
self.user.build_permissions()
def on_update(self):
def before_save(self):
if frappe.conf.developer_mode:
if self.app:
self.export_sidebar()

View file

@ -56,7 +56,7 @@ frappe.ui.sidebar_item.TypeLink = class SidebarItem {
prepare() {}
make() {
this.path = this.get_path();
if (!(this.item.child && this.item.parent.indent)) {
if (!this.item.icon && !(this.item.child && this.item.parent.indent)) {
this.item.icon = "list-alt";
}
this.wrapper = $(