Skip to main content
GoodFirstPicks
DashboardIssuesReposLeaderboard

GoodFirstPicks by Leaveitblank © 2026

CreatorRequest a RepoPrivacy PolicyTerms of Service
Bug: Sidebar crashes when a Workspace referenced in sidebar is missing from frappe.workspaces | GoodFirstPicks

Bug: Sidebar crashes when a Workspace referenced in sidebar is missing from frappe.workspaces

frappe/frappe 4 comments 19d ago
View on GitHub
lowopenScope: clearSkill match: yesFrappe / ERPNextPython

Why this is a good first issue

The issue involves a straightforward fix for a crash caused by missing workspace metadata.

AI Summary

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.

Issue Description

Description of the issue

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.


Context information (for bug reports)

Output of bench version

(paste here)

Steps to reproduce the issue

  1. Login as Administrator
  2. Navigate to /desk/account (or) desk/cost-center
  3. Desk sidebar starts rendering

If a sidebar item references a workspace that is not present in frappe.boot.workspaces, the sidebar crashes during rendering.


Observed result

Sidebar rendering stops and the following error appears in the b

GitHub Labels

bug

Want to work on this?

Claim this issue to let others know you're working on it. You'll earn 10 points when you complete it!

Loading labels...

Details

Points10 pts
Difficultylow
Scopeclear
Skill Matchyes
Test Focusedno