mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-04-23 03:00:31 -04:00
add toast
This commit is contained in:
committed by
psychedelicious
parent
5a961bb58e
commit
fdf9833c39
@@ -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 }));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user