mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-07-15 12:58:04 +00:00
Harden added models endpoint rendering
This commit is contained in:
+2
-1
@@ -477,7 +477,8 @@ async function loadEndpoints() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const rowHtml = data.map(ep => {
|
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);
|
const totalCount = visibleCount + (ep.hidden_count || 0);
|
||||||
// `ep.models` is the *visible* set — when every model is hidden it's
|
// `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
|
// empty, but we still need to render the expand panel so the user can
|
||||||
|
|||||||
Reference in New Issue
Block a user