From 129a686e8926f539ad2fca7e5930d56d71a772ed Mon Sep 17 00:00:00 2001 From: Christian Bastian <80225746+cdb-boop@users.noreply.github.com> Date: Mon, 25 Mar 2024 15:36:24 -0400 Subject: [PATCH] Fixed minor UI bug displaying 0 or 1 models in Download Tab. --- web/model-manager.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/model-manager.js b/web/model-manager.js index 8ddfcff..13b692e 100644 --- a/web/model-manager.js +++ b/web/model-manager.js @@ -2352,11 +2352,11 @@ class DownloadTab { id, ); }); - if (modelInfos.length === 0) { + if (modelInfosHtml.length === 0) { modelInfosHtml.push($el("div", ["No results found."])); } else { - if (modelInfos.length === 1) { + if (modelInfosHtml.length === 1) { modelInfosHtml[0].open = true; } const label = $checkbox({