fix: workspace creation issue
This commit is contained in:
parent
dc2bdb35b0
commit
4cb440c179
1 changed files with 2 additions and 1 deletions
|
|
@ -307,7 +307,8 @@ def new_page(new_page):
|
|||
# add to workspace sidebar items
|
||||
if not doc.public:
|
||||
add_to_my_workspace(doc)
|
||||
return {"workspace_pages": get_workspace_sidebar_items(), "sidebar_items": get_sidebar_items()}
|
||||
workspaces = get_workspace_sidebar_items()
|
||||
return {"workspace_pages": workspaces, "sidebar_items": get_sidebar_items(workspaces)}
|
||||
|
||||
|
||||
@frappe.whitelist()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue