Skip to content

Commit

Permalink
fix: make sure graph build errors bubble up to the frontend (#5864)
Browse files Browse the repository at this point in the history
fix: Add handling for None value in validate_source method to return default Source instance
  • Loading branch information
ogabrielluiz authored Jan 22, 2025
1 parent cdf85e5 commit 4ff34b6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/backend/base/langflow/schema/properties.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ class Properties(BaseModel):
def validate_source(cls, v):
if isinstance(v, str):
return Source(id=v, display_name=v, source=v)
if v is None:
return Source()
return v

@field_serializer("source")
Expand Down

0 comments on commit 4ff34b6

Please sign in to comment.