fix(ui): fix type issues related to change in LoRA type

This commit is contained in:
psychedelicious
2024-02-26 11:51:25 +11:00
parent 71ceab9094
commit e6de915c34
5 changed files with 7 additions and 5 deletions

View File

@ -40,7 +40,8 @@ export const addLoRAsToGraph = (
const loraMetadata: CoreMetadataInvocation['loras'] = [];
enabledLoRAs.forEach((lora) => {
const { key, weight } = lora;
const { weight } = lora;
const { key } = lora.model;
const currentLoraNodeId = `${LORA_LOADER}_${key}`;
const loraLoaderNode: LoraLoaderInvocation = {

View File

@ -58,7 +58,8 @@ export const addSDXLLoRAsToGraph = (
let currentLoraIndex = 0;
enabledLoRAs.forEach((lora) => {
const { key, weight } = lora;
const { weight } = lora;
const { key } = lora.model;
const currentLoraNodeId = `${LORA_LOADER}_${key}`;
const loraLoaderNode: SDXLLoraLoaderInvocation = {