Skip to content

Commit

Permalink
do not request default workflow for disabled workflow types
Browse files Browse the repository at this point in the history
  • Loading branch information
ljleb committed Aug 13, 2023
1 parent 40dd9f5 commit cb9d5a2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib_comfyui/comfyui/iframe_requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,11 +149,11 @@ def extend_infotext_with_comfyui_workflows(p, tab):
workflows = {}
for workflow_type in external_code.get_workflow_types(tab):
workflow_type_id = workflow_type.get_ids(tab)[0]
if not getattr(global_state, 'enabled_workflow_type_ids', {}).get(workflow_type_id, False):
continue

graph = get_workflow_graph(workflow_type_id)
if (
not getattr(global_state, 'enabled_workflow_type_ids', {}).get(workflow_type_id, False)
or is_default_workflow(workflow_type_id, graph)
):
if is_default_workflow(workflow_type_id, graph):
continue

workflows[workflow_type.base_id] = graph
Expand Down

0 comments on commit cb9d5a2

Please sign in to comment.