Skip to content

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

fix(frontend): use normalized tracking_type (tt) for table row key

Zamil Majdy7b30a5711202
diff --git a/autogpt_platform/frontend/src/app/(platform)/admin/platform-costs/components/ProviderTable.tsx b/autogpt_platform/frontend/src/app/(platform)/admin/platform-costs/components/ProviderTable.tsx
index 684d4b83bc..db100e0220 100644
--- a/autogpt_platform/frontend/src/app/(platform)/admin/platform-costs/components/ProviderTable.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/admin/platform-costs/components/ProviderTable.tsx
@@ -63,7 +63,7 @@ function ProviderTable({ data, rateOverrides, onRateOverride }: Props) {
const currentRate = rateOverrides[key] ?? fallback;
return (
<tr
- key={`${row.provider}:${row.tracking_type}:${row.model ?? ""}`}
+ key={`${row.provider}:${tt}:${row.model ?? ""}`}
className="border-b hover:bg-muted"
>
<td className="px-4 py-3 font-medium">{row.provider}</td>