diff --git a/project/frontend/src/components/KPIForm.tsx b/project/frontend/src/components/KPIForm.tsx index e493495..9fcef74 100644 --- a/project/frontend/src/components/KPIForm.tsx +++ b/project/frontend/src/components/KPIForm.tsx @@ -51,11 +51,6 @@ export function KPIForm({ mode, initialData, onSave, onCancel, loading = false } }; const handleCancel = () => { - if (mode === 'edit' && initialData) { - setFormData(initialData); - } else { - setFormData(emptyKPI); - } onCancel(); };