Fix form reset

This commit is contained in:
Sacha Weatherstone
2022-01-16 19:13:33 +11:00
parent 033da3c99b
commit 9555ae9913
14 changed files with 100 additions and 9 deletions
+2 -1
View File
@@ -62,8 +62,9 @@ export const Position = ({
const onSubmit = handleSubmit((data) => {
setLoading(true);
void connection.setPreferences(data, async () => {
await Promise.resolve();
reset({ ...data });
setLoading(false);
await Promise.resolve();
});
});