mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-21 21:22:11 -03:00
@@ -63,6 +63,12 @@ export function applyLoraValuesToText(originalText, loras) {
|
|||||||
if (!lora || !lora.name) {
|
if (!lora || !lora.name) {
|
||||||
return;
|
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);
|
loraMap.set(lora.name, lora);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user