mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-07-08 11:56:59 +00:00
Harden added models endpoint rendering
This commit is contained in:
+2
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user