We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent abc133e commit 0ba57d6Copy full SHA for 0ba57d6
invokeai/frontend/web/src/features/modelManagerV2/hooks/useStarterModelsToast.tsx
@@ -17,7 +17,11 @@ export const useStarterModelsToast = () => {
17
18
useEffect(() => {
19
if (toast.isActive(TOAST_ID)) {
20
- return;
+ if (mainModels.length === 0) {
21
+ return;
22
+ } else {
23
+ toast.close(TOAST_ID);
24
+ }
25
}
26
if (data && mainModels.length === 0 && !didToast && isEnabled) {
27
toast({
0 commit comments