fix(ui): enable lora when recalling

Closes #5698
This commit is contained in:
psychedelicious 2024-02-12 16:45:45 +11:00
parent 6539ef7c9f
commit 0ef18b6477

View File

@ -35,7 +35,7 @@ export const loraSlice = createSlice({
},
loraRecalled: (state, action: PayloadAction<LoRAModelConfigEntity & { weight: number }>) => {
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>) => {
const id = action.payload;