Fixed minor UI bug displaying 0 or 1 models in Download Tab.

This commit is contained in:
Christian Bastian
2024-03-25 15:36:24 -04:00
parent df8fb76f26
commit 129a686e89

View File

@@ -2352,11 +2352,11 @@ class DownloadTab {
id, id,
); );
}); });
if (modelInfos.length === 0) { if (modelInfosHtml.length === 0) {
modelInfosHtml.push($el("div", ["No results found."])); modelInfosHtml.push($el("div", ["No results found."]));
} }
else { else {
if (modelInfos.length === 1) { if (modelInfosHtml.length === 1) {
modelInfosHtml[0].open = true; modelInfosHtml[0].open = true;
} }
const label = $checkbox({ const label = $checkbox({