Skip to content

Commit

Permalink
show warning for maxUpscaleDimension if model tab is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Mary Hipp authored and hipsterusername committed Aug 9, 2024
1 parent 17ff819 commit 09d1e19
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 09d1e19

Please sign in to comment.