fix: Return empty list when not ingesting data (#7134)

This commit is contained in:
Eric Hare 2025-03-18 09:45:10 -07:00 committed by GitHub
commit 3964ba9310
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -105,7 +105,7 @@ class LCVectorStoreComponent(Component):
"""Prepares ingest_data by converting DataFrame to Data if needed."""
ingest_data: list | Data | DataFrame = self.ingest_data
if not ingest_data:
return [ingest_data]
return []
if not isinstance(ingest_data, list):
ingest_data = [ingest_data]