Skip to content

Commit

Permalink
fix: updated faulty reset
Browse files Browse the repository at this point in the history
  • Loading branch information
malmen237 committed Jun 28, 2024
1 parent 05b4682 commit a9de8b5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/components/manage-productions/manage-productions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,10 @@ export const ManageProductions = () => {
if (isFormValid) {
const values = getValues();
setRemoveId(parseInt(values.productionId, 10));
setCachedProduction(null);
reset({
productionId: "",
});
}
};

Expand Down Expand Up @@ -206,9 +210,6 @@ export const ManageProductions = () => {
setVerifyRemove={(input) => setVerifyRemove(input)}
reset={() => {
setVerifyRemove(false);
reset({
productionId: "",
});
setRemoveId(null);
}}
/>
Expand Down

0 comments on commit a9de8b5

Please sign in to comment.