Skip to content

Commit 81878cd

Browse files
committed
🐛 fix: restore full useStackDiscovery.ts with type narrowing fix
Signed-off-by: clubanderson <club.anderson@gmail.com>
1 parent a29d8cb commit 81878cd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

web/src/hooks/useStackDiscovery.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ export function useStackDiscovery(clusters: string[]) {
418418
const filtered: LLMdStack[] = []
419419
for (const s of prev) {
420420
if (s.cluster === cluster) {
421-
cachedById.set(s.id, s)
421+
cachedById.set(s.id, s)
422422
} else {
423423
filtered.push(s)
424424
}
@@ -628,7 +628,7 @@ cachedById.set(s.id, s)
628628
const components = { prefill: prefillComponents, decode: decodeComponents, both: bothComponents, epp, gateway }
629629

630630
const pool = poolsByNamespace.get(namespace)
631-
const totalReplicas = [...prefillComponents, ...decodeComponents, ...bothComponents].reduce((s, c) => s + c.replicas, 0)
631+
const totalReplicas = [...prefillComponents, ...decodeComponents, ...bothComponents].reduce((s, c) => s + c.replicas, 0)
632632
const readyReplicas = [...prefillComponents, ...decodeComponents, ...bothComponents].reduce((s, c) => s + c.readyReplicas, 0)
633633

634634
phase1Stacks.push({

0 commit comments

Comments
 (0)