diff --git a/backend/app/core/step_sync.py b/backend/app/core/step_sync.py index 4a42066a..825a4ad9 100644 --- a/backend/app/core/step_sync.py +++ b/backend/app/core/step_sync.py @@ -157,7 +157,7 @@ async def sync_steps_from_tree( "title": step_data["title"], "step_type": step_data["step_type"], "content": json.dumps(step_data["content"]), - "created_by": str(author_id), + "created_by": str(author_id) if author_id else None, "account_id": str(account_id) if account_id else None, "visibility": visibility, "source_tree_id": str(tree_id),