refactor: using isDirty in forms

This commit is contained in:
2025-09-13 09:02:07 +04:00
parent c76304b7bc
commit f2746b8b65
4 changed files with 8 additions and 15 deletions

View File

@ -29,7 +29,7 @@ const GeneralTab: FC<Props> = ({ value, onDelete, onChange }) => {
});
const onSubmit = (values: DealForm) => {
form.setInitialValues(values);
form.resetDirty();
onChange({
...values,
board: values.board!,
@ -63,7 +63,6 @@ const GeneralTab: FC<Props> = ({ value, onDelete, onChange }) => {
/>
<Footer
form={form}
initialValues={value}
onDelete={() => onDelete(value)}
/>
</Stack>