From 09d1e190e7b1ced95baa674dc4c856cbd9f069fa Mon Sep 17 00:00:00 2001 From: Mary Hipp Date: Fri, 9 Aug 2024 13:04:24 -0400 Subject: [PATCH] show warning for maxUpscaleDimension if model tab is disabled --- .../components/UpscaleSettingsAccordion/UpscaleWarning.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/invokeai/frontend/web/src/features/settingsAccordions/components/UpscaleSettingsAccordion/UpscaleWarning.tsx b/invokeai/frontend/web/src/features/settingsAccordions/components/UpscaleSettingsAccordion/UpscaleWarning.tsx index 18d63d4f74..d12b4e62ef 100644 --- a/invokeai/frontend/web/src/features/settingsAccordions/components/UpscaleSettingsAccordion/UpscaleWarning.tsx +++ b/invokeai/frontend/web/src/features/settingsAccordions/components/UpscaleSettingsAccordion/UpscaleWarning.tsx @@ -57,7 +57,11 @@ export const UpscaleWarning = () => { $installModelsTab.set(3); }, [dispatch]); - if ((!modelWarnings.length && !otherWarnings.length) || isLoading || !shouldShowButton) { + if (modelWarnings.length && !shouldShowButton) { + return null; + } + + if ((!modelWarnings.length && !otherWarnings.length) || isLoading) { return null; }