Skip to content

Commit

Permalink
Reset puzzle modal form upon successful submission.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpd236 committed Oct 3, 2024
1 parent e9650de commit d11bc6c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions imports/client/components/PuzzleModalForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -177,10 +177,15 @@ const PuzzleModalForm = React.forwardRef(
} else {
setSubmitState(PuzzleModalFormSubmitState.IDLE);
setErrorMessage("");
setTitle("");
setTitleDirty(false);
setUrl("");
setUrlDirty(false);
setTags([]);
setTagsDirty(false);
setExpectedAnswerCount(1);
setExpectedAnswerCountDirty(false);
setDocType("spreadsheet");
callback();
}
});
Expand Down

0 comments on commit d11bc6c

Please sign in to comment.