diff --git a/src/backend/langflow/interface/custom/custom_component/custom_component.py b/src/backend/langflow/interface/custom/custom_component/custom_component.py index 1f7b58eb4..a616b8a88 100644 --- a/src/backend/langflow/interface/custom/custom_component/custom_component.py +++ b/src/backend/langflow/interface/custom/custom_component/custom_component.py @@ -341,7 +341,8 @@ class CustomComponent(Component): ) -> Any: if not flow_id and not flow_name: raise ValueError("Flow ID or Flow Name is required") - + if not self._flows_records: + self.list_flows() if not flow_id and self._flows_records: flow_ids = [ flow.data["id"]