Skip to content

Self-improving AI Employees for everyone

fix: TypeScript lint error in PricingConfigModal

trohitg60cb39cb99f6
diff --git a/client/src/components/PricingConfigModal.tsx b/client/src/components/PricingConfigModal.tsx
index 357377fa..8cbb70e9 100644
--- a/client/src/components/PricingConfigModal.tsx
+++ b/client/src/components/PricingConfigModal.tsx
@@ -211,7 +211,7 @@ const PricingConfigModal: React.FC<Props> = ({ visible, onClose }) => {
if (!updated.llm[provider][model]) {
updated.llm[provider][model] = { input: 0, output: 0 };
}
- (updated.llm[provider][model] as Record<string, number | undefined>)[field] = value;
+ updated.llm[provider][model] = { ...updated.llm[provider][model], [field]: value };
return updated;
});
setIsDirty(true);