SD: fix runpod chain lookup - find first comfy preset, not just any preset with matching URL

ba698dd98117dfb6b639cf14f28c79a0b0309947

permissionBRICK <40219477+permissionBRICK@users.noreply.github.com>

1 files changed, +2 -1Showing whitespace changes
public/scripts/extensions/stable-diffusion/index.js+2 -1
@@ -1784,7 +1784,8 @@ function getRunpodActiveModels() {
17841784 }
17851785 if (!config) {
17861786 const chain = Array.isArray(extension_settings.sd.settings_preset_chain) ? extension_settings.sd.settings_preset_chain : [];
1787- config = chain.find(e => isRunpodProxyUrl(e?.preset?.comfy_url))?.preset ?? null;
1787+ // Find the first ComfyUI preset in the chain, not just any preset with a matching URL
1788+ config = chain.find(e => e?.preset?.source === 'comfy' && isRunpodProxyUrl(e?.preset?.comfy_url))?.preset ?? null;
17881789 }
17891790 if (!config) {
17901791 return [];