diff --git a/web/comfyui/lora_syntax_utils.js b/web/comfyui/lora_syntax_utils.js index b7be3d2b..9c05f9eb 100644 --- a/web/comfyui/lora_syntax_utils.js +++ b/web/comfyui/lora_syntax_utils.js @@ -63,6 +63,12 @@ export function applyLoraValuesToText(originalText, loras) { if (!lora || !lora.name) { return; } + // Only include active LoRAs in the map + // If active property is missing (undefined/null), treat as active for backward compatibility + const isActive = lora.active === undefined || lora.active === null || lora.active === true; + if (!isActive) { + return; + } loraMap.set(lora.name, lora); });