Skip to content

Commit

Permalink
fix(platform): Fields with default value are not set to advanced by d…
Browse files Browse the repository at this point in the history
…efault
  • Loading branch information
majdyz committed Dec 26, 2024
1 parent 1e467c0 commit 4d3e92b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions autogpt_platform/backend/backend/data/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,6 @@ def SchemaField(
**kwargs,
) -> T:
if default is PydanticUndefined and default_factory is None:
if advanced:
raise ValueError("Advanced fields must have a default value.")
advanced = False
elif advanced is None:
advanced = True
Expand Down

0 comments on commit 4d3e92b

Please sign in to comment.