mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
add toast
This commit is contained in:
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 }));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user