clear out loras before using metadata loras

This commit is contained in:
Jennifer Player 2023-09-21 11:30:10 -04:00 committed by Kent Keirsey
parent c5d0e65a24
commit ca7a7b57bb

View File

@ -21,7 +21,7 @@ import {
loraModelsAdapter,
useGetLoRAModelsQuery,
} from '../../../services/api/endpoints/models';
import { loraRecalled } from '../../lora/store/loraSlice';
import { loraRecalled, lorasCleared } from '../../lora/store/loraSlice';
import { initialImageSelected, modelSelected } from '../store/actions';
import {
setCfgScale,
@ -509,6 +509,7 @@ export const useRecallParameters = () => {
dispatch(setRefinerStart(refiner_start));
}
dispatch(lorasCleared());
loras?.forEach((lora) => {
const result = prepareLoRAMetadataItem(lora);
if (result.lora) {