diff --git a/invokeai/frontend/web/src/features/lora/store/loraSlice.ts b/invokeai/frontend/web/src/features/lora/store/loraSlice.ts index 2dc739a737..f0067a85a2 100644 --- a/invokeai/frontend/web/src/features/lora/store/loraSlice.ts +++ b/invokeai/frontend/web/src/features/lora/store/loraSlice.ts @@ -3,6 +3,7 @@ import { LoRAModelParam } from 'features/parameters/types/parameterSchemas'; import { LoRAModelConfigEntity } from 'services/api/endpoints/models'; export type LoRA = LoRAModelParam & { + id: string; weight: number; }; @@ -24,7 +25,7 @@ export const loraSlice = createSlice({ reducers: { loraAdded: (state, action: PayloadAction) => { const { model_name, id, base_model } = action.payload; - state.loras[id] = { model_name, base_model, ...defaultLoRAConfig }; + state.loras[id] = { id, model_name, base_model, ...defaultLoRAConfig }; }, loraRemoved: (state, action: PayloadAction) => { const id = action.payload; diff --git a/invokeai/frontend/web/src/features/nodes/util/graphBuilders/addLoRAsToGraph.ts b/invokeai/frontend/web/src/features/nodes/util/graphBuilders/addLoRAsToGraph.ts index 5d1f3d05d2..a2cf1477f2 100644 --- a/invokeai/frontend/web/src/features/nodes/util/graphBuilders/addLoRAsToGraph.ts +++ b/invokeai/frontend/web/src/features/nodes/util/graphBuilders/addLoRAsToGraph.ts @@ -60,7 +60,7 @@ export const addLoRAsToGraph = ( const loraLoaderNode: LoraLoaderInvocation = { type: 'lora_loader', id: currentLoraNodeId, - lora, + lora: { model_name, base_model }, weight, };