fix: don't export non standard workspace sidebar

This commit is contained in:
sokumon 2026-02-02 12:14:30 +05:30
parent 0de31fe597
commit be4f4b6f5f

View file

@ -54,7 +54,9 @@ class WorkspaceSidebar(Document):
self.set_module()
def export_sidebar(self):
allow_export = self.app and not frappe.flags.in_import and frappe.conf.developer_mode
allow_export = (
self.app and self.standard and not frappe.flags.in_import and frappe.conf.developer_mode
)
if allow_export:
folder_path = create_directory_on_app_path("workspace_sidebar", self.app)
file_path = os.path.join(folder_path, f"{frappe.scrub(self.title)}.json")