Removed unnecessary updating form onCancel.
parent
509413f994
commit
605b649d9c
|
|
@ -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();
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue