Skip to content

Commit

Permalink
Fix: The page is reloaded when the reset parameters button is clicked
Browse files Browse the repository at this point in the history
Regression of 360efe0.
  • Loading branch information
graphemecluster committed Sep 30, 2024
1 parent 5251cd3 commit 06a1818
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Components/SchemaEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ export default function SchemaEditor({ state, setState, commonOptions }: SchemaE

const resetParameters = useCallback(
(event: MouseEvent<HTMLButtonElement>) => {
event.preventDefault();
setState(actions.resetSchemaParameters(activeSchemaName));
const element = event.currentTarget;
element.classList.remove("rotate");
Expand Down

0 comments on commit 06a1818

Please sign in to comment.