Skip to content

Commit

Permalink
Add event.preventDefault()
Browse files Browse the repository at this point in the history
  • Loading branch information
nygrenh committed Sep 23, 2024
1 parent cdd2894 commit 8d0d2d9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,8 @@ const NewCourseForm: React.FC<React.PropsWithChildren<NewCourseFormProps>> = ({
<Button
size="medium"
variant="primary"
onClick={() => {
onClick={(e) => {
e.preventDefault()
mutation.mutate()
}}
disabled={submitDisabled}
Expand Down

0 comments on commit 8d0d2d9

Please sign in to comment.