fix(webui): guard provider totals and model panel against stale responses

This commit is contained in:
2026-11-25 12:11:12 +00:00
parent a7e9c98663
commit ad6af8fd0a
3 changed files with 26 additions and 1 deletions
+1
View File
@@ -66,6 +66,7 @@ let reqId = 0
async function loadSeries(): Promise<void> {
const id = ++reqId
seriesLoading.value = true
points.value = []
try {
const res = await adminFetch<AdminSeriesResponse>(seriesUrl({ scope: [`model:${props.id}`], metric: 'req', window: filters.window, span: filters.span }))
if (id !== reqId) return