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:
@@ -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 });
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user