Harden added models endpoint rendering
This commit is contained in:
parent
3aa48e9025
commit
ac7cf67ab6
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue