Skip to content

fix(dashboard): List Models card must not hardcode models={null} (#10553) - #10753

Merged
diegosouzapw merged 1 commit into
release/v3.8.50from
fix/10553-list-models-card
Aug 19, 2026
Merged

diegosouzapw merged 1 commit into
release/v3.8.50from
fix/10553-list-models-card

Conversation

@diegosouzapw

Copy link
Copy Markdown
Owner

Closes #10553

Root cause: the "List Models" EndpointCard (path /v1/models) on the Endpoints dashboard tab was hardcoded with models={null}, so EndpointCard's render logic (models === null ? "—" : ...) permanently took the "—" branch. Every sibling card that maps to an actual model-list endpoint is fed a real array + modelsLoading; fixed List Models to use models={allModels} + modelsLoading={modelsLoading}, matching the existing pattern.

Regression test: tests/unit/dashboard/endpoint-list-models-card-10553.test.ts.

⚠️ Note: npx eslint on the touched file reports 3 pre-existing errors (temporal-dead-zone lint findings at lines 310/315/316, unrelated to this change) — confirmed present on origin/release/v3.8.50 tip before this PR (base-red drift, not introduced here).

@diegosouzapw
diegosouzapw merged commit 6e80998 into release/v3.8.50 Aug 19, 2026
11 checks passed
@diegosouzapw
diegosouzapw deleted the fix/10553-list-models-card branch August 19, 2026 14:52
giauphan pushed a commit to giauphan/OmniRoute that referenced this pull request Aug 20, 2026
muhamadgalihsaputra pushed a commit to niyatna/NiyatnaRoute that referenced this pull request Sep 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(api): "List Models" card in Endpoints tab always shows "—" (never populates)

2 participants