The issue involves a straightforward fix for a crash caused by missing workspace metadata.
The sidebar crashes when rendering items if a referenced workspace is missing from `frappe.workspaces`. The fix involves handling the case where workspace metadata is absent, preventing the crash and allowing the sidebar to render completely. There are no apparent blockers.
Desk sidebar crashes when rendering sidebar items if a workspace referenced by a sidebar item is not present in frappe.workspaces from the boot payload.
In frappe/public/js/frappe/ui/sidebar/sidebar_item.js, the code assumes that the workspace always exists and directly accesses .public. If the workspace metadata is missing, this results in an uncaught exception and the sidebar stops rendering.
This issue was observed when opening /app/account as Administrator, while other users were unaffected.
The crash prevents the sidebar from finishing rendering and certain items (for example Chart of Accounts) do not appear.
Output of bench version
(paste here)
/desk/account (or) desk/cost-centerIf a sidebar item references a workspace that is not present in frappe.boot.workspaces, the sidebar crashes during rendering.
Sidebar rendering stops and the following error appears in the b
Claim this issue to let others know you're working on it. You'll earn 10 points when you complete it!