mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
parent
6539ef7c9f
commit
0ef18b6477
@ -35,7 +35,7 @@ export const loraSlice = createSlice({
|
|||||||
},
|
},
|
||||||
loraRecalled: (state, action: PayloadAction<LoRAModelConfigEntity & { weight: number }>) => {
|
loraRecalled: (state, action: PayloadAction<LoRAModelConfigEntity & { weight: number }>) => {
|
||||||
const { model_name, id, base_model, weight } = action.payload;
|
const { model_name, id, base_model, weight } = action.payload;
|
||||||
state.loras[id] = { id, model_name, base_model, weight };
|
state.loras[id] = { id, model_name, base_model, weight, isEnabled: true };
|
||||||
},
|
},
|
||||||
loraRemoved: (state, action: PayloadAction<string>) => {
|
loraRemoved: (state, action: PayloadAction<string>) => {
|
||||||
const id = action.payload;
|
const id = action.payload;
|
||||||
|
Loading…
Reference in New Issue
Block a user