Harden added models endpoint rendering

This commit is contained in:
pewdiepie-archdaemon
2026-06-28 05:29:25 +00:00
parent 3aa48e9025
commit ac7cf67ab6
+2 -1
View File
@@ -477,7 +477,8 @@ async function loadEndpoints() {
return;
}
const rowHtml = data.map(ep => {
const visibleCount = ep.models.length;
const epModels = Array.isArray(ep.models) ? ep.models : [];
const visibleCount = epModels.length;
const totalCount = visibleCount + (ep.hidden_count || 0);
// `ep.models` is the *visible* set — when every model is hidden it's
// empty, but we still need to render the expand panel so the user can