Fix issue with missing flow records

This commit is contained in:
Gabriel Luiz Freitas Almeida 2024-03-04 11:56:47 -03:00
commit a5f4299cd7

View file

@ -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"]