fix(costs): guard byProject against duplicate null keys, memoize ProviderQuotaCard row aggregations

This commit is contained in:
Sai Shankar
2026-03-08 21:26:06 +05:30
committed by Dotta
parent 7db3446a09
commit 3529ccfa85
2 changed files with 45 additions and 13 deletions

View File

@@ -486,7 +486,7 @@ export function Costs() {
<div className="space-y-2">
{spendData.byProject.map((row, i) => (
<div
key={row.projectId ?? "unattributed"}
key={row.projectId ?? `unattributed-${i}`}
className="flex items-center justify-between text-sm"
>
<span className="truncate">