fix(ui): fix incorrect lora id processing

This commit is contained in:
psychedelicious 2023-07-05 12:04:07 +10:00
parent 52a09422c7
commit 0f0336b6ef

View File

@ -42,8 +42,8 @@ export const addLoRAsToGraph = (
let currentLoraIndex = 0; let currentLoraIndex = 0;
forEach(loras, (lora) => { forEach(loras, (lora) => {
const { name, weight } = lora; const { id, name, weight } = lora;
const loraField = modelIdToLoRAModelField(name); const loraField = modelIdToLoRAModelField(id);
const currentLoraNodeId = `${LORA_LOADER}_${loraField.model_name.replace( const currentLoraNodeId = `${LORA_LOADER}_${loraField.model_name.replace(
'.', '.',
'_' '_'