mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-25 23:25:43 -03:00
fix: remove console log and update file extension handling for LoRA syntax. Fixes https://github.com/willmiao/ComfyUI-Lora-Manager/issues/158
This commit is contained in:
@@ -452,8 +452,6 @@ class RecipeModal {
|
|||||||
this.recipeLorasSyntax = '';
|
this.recipeLorasSyntax = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(this.currentRecipe.loras);
|
|
||||||
|
|
||||||
// Show the modal
|
// Show the modal
|
||||||
modalManager.showModal('recipeModal');
|
modalManager.showModal('recipeModal');
|
||||||
}
|
}
|
||||||
@@ -951,8 +949,8 @@ class RecipeModal {
|
|||||||
let loraSyntaxMatch = inputValue.match(/<lora:([^:>]+)(?::[^>]+)?>/);
|
let loraSyntaxMatch = inputValue.match(/<lora:([^:>]+)(?::[^>]+)?>/);
|
||||||
let fileName = loraSyntaxMatch ? loraSyntaxMatch[1] : inputValue.trim();
|
let fileName = loraSyntaxMatch ? loraSyntaxMatch[1] : inputValue.trim();
|
||||||
|
|
||||||
// Remove any file extension if present
|
// Remove .safetensors extension if present
|
||||||
fileName = fileName.replace(/\.\w+$/, '');
|
fileName = fileName.replace(/\.safetensors$/, '');
|
||||||
|
|
||||||
// Get the deleted lora data
|
// Get the deleted lora data
|
||||||
const deletedLora = this.currentRecipe.loras[loraIndex];
|
const deletedLora = this.currentRecipe.loras[loraIndex];
|
||||||
|
|||||||
Reference in New Issue
Block a user