fix: error in workspace patch (#21335)

This commit is contained in:
Raffael Meyer 2023-06-12 12:13:23 +02:00 committed by GitHub
parent fbc25d206e
commit 93c8c2d93f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -70,7 +70,7 @@ def update_workspace(doc, seq, content):
doc.sequence_id = seq + 1
doc.content = json.dumps(content)
doc.public = 0 if doc.for_user else 1
doc.title = doc.extends or doc.label
doc.title = doc.get("extends") or doc.get("label")
doc.extends = ""
doc.category = ""
doc.onboarding = ""