Skip to content

Commit

Permalink
fix: Fix operation form reset button
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveGT96 committed Dec 2, 2024
1 parent 940354e commit 39b14a0
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -273,13 +273,13 @@ const OperationForm: FC<IOperationProps> = ({
</div>
<div className="reset_button">
<Button
dataCy="cancel-form"
dataCy="reset-form"
type="reset"
variant="text"
disabled={isLoading}
onClick={() => setOpenResetConfirmation(true)}
disabled={isLoading || !formik.dirty}
onClick={handleResetConfirmationDialog(true)}
>
{resetButtonLabel}
{t("common.reset")}
</Button>
</div>
</div>
Expand Down

0 comments on commit 39b14a0

Please sign in to comment.