Hi, I am trying to use the new sidebar feature with a custom app.
I created a new app, a new module, and a workspace inside that app.
Now, I am facing some issues with the sidebar UI:
- When I click on the app, the URL navigates to the one defined in hooks.py, but not on the first click.
- When I open a Doctype under that app, the sidebar becomes blank.
Here is a short gif illustrating the issue:
Console Error:
I noticed the following error in the console:
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'workspaces')
at Sidebar.make_sidebar (desk.bundle.V6ESJGGS.js:sourcemap:18433:85)
at AppsSwitcher.set_current_app (desk.bundle.V6ESJGGS.js:sourcemap:18768:26)
at Workspace.show_page (desk.bundle.V6ESJGGS.js:sourcemap:41105:42)Understand this errorAI
desk.bundle.V6ESJGGS.js:sourcemap:18433
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'workspaces')
at Sidebar.make_sidebar (desk.bundle.V6ESJGGS.js:sourcemap:18433:85)
at AppsSwitcher.set_current_app (desk.bundle.V6ESJGGS.js:sourcemap:18768:26)
at Object.update (desk.bundle.V6ESJGGS.js:sourcemap:31226:42)
at Object.add (desk.bundle.V6ESJGGS.js:sourcemap:31198:12)
at form.js:593:23
I performed a simple test in the console and found that the workspaces object is missing in the boot info.
How can I set or resolve this issue?
Screenshot of my console test:
Workspace Settings:
Framework: v15.x.x-develop (638b118) (develop)
Thank you very much for help.