fix: type error while updating workspace (#33554)
This commit is contained in:
parent
cb7c10e2bd
commit
56cb585f32
1 changed files with 3 additions and 0 deletions
|
|
@ -302,6 +302,9 @@ def save_page(name, public, new_widgets, blocks):
|
|||
public = frappe.parse_json(public)
|
||||
|
||||
doc = frappe.get_doc("Workspace", name)
|
||||
if not doc.type:
|
||||
doc.type = "Workspace"
|
||||
|
||||
doc.content = blocks
|
||||
|
||||
save_new_widget(doc, name, blocks, new_widgets)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue