Skip to content

Commit 0ba57d6

Browse files
feat(ui): close starter models toast when a model is installed
1 parent abc133e commit 0ba57d6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

invokeai/frontend/web/src/features/modelManagerV2/hooks/useStarterModelsToast.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@ export const useStarterModelsToast = () => {
1717

1818
useEffect(() => {
1919
if (toast.isActive(TOAST_ID)) {
20-
return;
20+
if (mainModels.length === 0) {
21+
return;
22+
} else {
23+
toast.close(TOAST_ID);
24+
}
2125
}
2226
if (data && mainModels.length === 0 && !didToast && isEnabled) {
2327
toast({

0 commit comments

Comments
 (0)