fix: Return empty list when not ingesting data (#7134)
This commit is contained in:
parent
37b8e9e4a4
commit
3964ba9310
1 changed files with 1 additions and 1 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue