add toast

This commit is contained in:
Mary Hipp 2023-09-15 16:53:42 -04:00 committed by psychedelicious
parent 5a961bb58e
commit fdf9833c39

View File

@ -328,6 +328,7 @@ export const useRecallParameters = () => {
}
if (!loraModels || !loraModels.entities) {
parameterNotSetToast();
return;
}
@ -340,14 +341,16 @@ export const useRecallParameters = () => {
});
if (!matchingId) {
return;
}
parameterNotSetToast();
return;
}
const fullLoRA = loraModels.entities[matchingId];
if (!fullLoRA) {
return;
}
parameterNotSetToast();
return;
}
dispatch(loraRecalled({ ...fullLoRA, weight: lora.weight }));