From 85b4129219389ac68b77dd8b361d75f63ade6152 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Thu, 22 Aug 2024 00:25:43 +0200 Subject: [PATCH] fix --- backend/apps/images/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/apps/images/main.py b/backend/apps/images/main.py index 371b1c3bc..25ed2c517 100644 --- a/backend/apps/images/main.py +++ b/backend/apps/images/main.py @@ -298,7 +298,8 @@ def get_models(user=Depends(get_verified_user)): for node in app.state.config.COMFYUI_WORKFLOW_NODES: if node["type"] == "model": - model_node_id = node["node_ids"][0] + if node["node_ids"]: + model_node_id = node["node_ids"][0] break if model_node_id: