fix: type error while updating workspace (#33554)

This commit is contained in:
rohitwaghchaure 2025-08-06 15:37:43 +05:30 committed by GitHub
parent cb7c10e2bd
commit 56cb585f32
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)