refactor(ui): simplify quota info handling in data store

Remove conditional check for empty quotaInfo and always include the row,
treating missing quota info as 0% or unknown for chart display consistency.
This commit is contained in:
jgor20
2026-01-11 15:01:10 +00:00
parent 85381f60a0
commit 5993456620

View File

@@ -375,11 +375,7 @@ document.addEventListener('alpine:init', () => {
quotaInfo.push({ pct }); quotaInfo.push({ pct });
}); });
if (quotaInfo.length === 0) { // treat missing quotaInfo as 0%/unknown; still include row
// Include model even if no quota info is available (treat as 0% or unknown)
// This ensures the family appears in the charts
}
rows.push({ modelId, family, quotaInfo }); rows.push({ modelId, family, quotaInfo });
}); });