Fix issue with missing flow records
This commit is contained in:
parent
edb1e4137f
commit
a5f4299cd7
1 changed files with 2 additions and 1 deletions
|
|
@ -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"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue